From the course: Node: Authentication

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

The GitHub OAuth2 authorization (and authentication) flow

The GitHub OAuth2 authorization (and authentication) flow

From the course: Node: Authentication

The GitHub OAuth2 authorization (and authentication) flow

- [Instructor] Social login is a form of single sign-on using existing information from a social networking service to log into another service without providing username and password for it. I'm sure you've already used your Google, Twitter, Facebook, or LinkedIn account to sign in to some other application and also hi that behind the scenes, you were using OAuth 2.0 for this. Technically, this means you were giving the app you were using access to the API of the service on your behalf. As I said, actually OAuth 2.0 does not support authentication, yet for social sign on, it is used regardless. After this video, you will understand how this is done. We will use GitHub to implement social sign on. It is an OAuth provider as well. OAuth 2.0 flows are always rather similar but they have their specifics. Let's look at how this works with GitHub. First, you have to register your site as an OAuth app in GitHub. We will do…

Contents