Oracle Interview Question

Explain how OAuth2 works? How did you use it in your project?