Using Social Media Accounts to log in.

OAuth is a commonly used authorization framework that enables websites and web applications to request limited access to a user's account on another application. Crucially, OAuth allows the user to grant this access without exposing their login credentials to the requesting application. This means users can fine-tune which data they want to share rather than having to hand over full control of their account to a third party.

It works by defining a series of interactions between three distinct parties, namely a client application, a resource owner, and the OAuth service provider.


OAuth code grant type

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0eb249d5-ac27-4817-899f-96c8367a12dc/Untitled.png

GET /authorization?client_id=12345&redirect_uri=https://client-app.com/callback&response_type=code&scope=openid%20profile&state=ae13d489bd00e3c24 HTTP/1.1 Host: [oauth-authorization-server.com](<http://oauth-authorization-server.com/>)

Important parms :