From the course: Node: Authentication
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Prepare Passport.js for GitHub OAuth2
From the course: Node: Authentication
Prepare Passport.js for GitHub OAuth2
- [Instructor] Now to kick this off, let's now register this Oauth app in github for that I head into the browser and on the top, right where my profile pic is I click on settings and then I scroll down and select developer settings. And there, I can now click on auth apps and there, and I now click on new OAuth app and then give the app name. That's my playground app. The homepage URL is in this case, https test.com or whatever. This is just to inform the user when they try to authenticate for which app or which page they're authenticating. And then, and this is very important. This is now the callback url I talked about before. This is http local host port 3000, and it's auth, github callback. Needless to say that we have to implement this callback route later, but now let's register the application and there we already have the client ID. And we also need this client secret. And for that I click on…
Contents
-
-
-
-
-
-
Authentication, authorization, and single sign-on (SSO)5m 17s
-
(Locked)
The GitHub OAuth2 authorization (and authentication) flow5m 42s
-
(Locked)
Prepare Passport.js for GitHub OAuth212m 36s
-
(Locked)
Extend the application for single sign-on18m 47s
-
(Locked)
Finalize and test the single sign-on flow13m 22s
-
-