Posts

Showing posts from October, 2018

Understanding Oauth2 (you have a option of login)

Image
Understanding Oauth2 These days when you login to a site, you have a option of login with Facebook and Google . Ever Wondered, how does this login work? Well Answer is OAuth . OAuth grants third part services provides  permission to do certain things, For example, login in the above case. Lets discuss more on what OAuth is and how it works. OAuth(Open Authorization ) is a protocol for authorization. It allows limited access for a user from one site to another of certain protected resources. It allows sites to communicate with each other without giving your away your password. It uses Authorization tokens for communication between the sites. OAuth Roles Lets Under stand OAuth Roles in order to understand how it works. OAuth has following Roles : Resource Owner : It is used to grant access to the resources that are protected. We can say that it is the end User. It will be you who will be the resource owner in above case as you are giving a site permi...