Microsoft Interview Question

Explain how Oauth works?