Monday, May 14, 2018

OAuth Social Login



What is a Social Login ?



Social Login is a single sign-on for end users. By using this SOCIAL LOGIN user can sign in to a third party website from social network provider like Facebook, Google, LinkedIn or twitter without creating a account on that third party web site.




Flow









A simple social login which was implemented using OAuth 2.0 framework is available in the following link.


How it works  ?



Social Login is created with a Google login, using OAuth 2.0 consuming the services of an OAuth Authorization Server and OAuth Resource Server





After the session is start the client send a request to the OAuth authorization server for obtaining access token. During flow this prompt for user Authentication in google.








The following image shows how this app prompt for user authentication






Once the OAuth token is received the resource server APIs invoked and obtain the protected resources as follows.





No comments:

Post a Comment

Hack The Box : How to get Invite code.

What is Hack the Box ? Hack the box is an online platform to test and improve your skills in Penetration testing in Cyber Security. Hack ...