Current section: OAuth 6 exercises

Integrating GitHub Authentication

Loading exercise


00:00 This is chomped up into a couple of different pieces. So after this first step, you're not actually going to be able to go through the Auth flow because there are just a couple of things we need to do to get things set up before we do that. So first of all, we're going to be setting some GitHub environment variables so we can integrate with the GitHub API.

00:17 If you want to, you can actually go to GitHub and get real credentials and everything, the client ID and secret, and so you can actually try this out. I'll do that in the video so that you can see what the actual flow looks like. But you don't necessarily have to do that if you don't want to.

00:37 So we'll be setting up those environment variables, and then we'll be updating our Auth servers so that we can set up the GitHub Auth strategy. So RemixAuth is the abstraction that has a bunch of different strategies, kind of Passport JS inspired if you ever used to that.

00:56 So yeah, we're going to be integrating the GitHub Auth strategy with an authenticator. It's going to have its own special connection session so that it can manage that cookie as the user's navigating off-site and then coming back. We need to manage some state there and everything. So you're going to be setting that up.

01:15 We'll have a handler, that's like a verification handler where it'll get the user's profile, and then we'll return the pieces of the profile that we need in our application. So couple of pieces going on in this first step. I think you'll have a good time, so we'll see you when you're done.