To create your GitHub Oauth application, you’ll need to log in to GitHub then go to https://github.com/settings/applications/new.
Creating a GitHub App
00:00 Creating a GitHub Application. To use GitHub authentication with Django user management, you’ll first have to create an application. Log in to your GitHub account and go to the URL seen on-screen and fill in the form.
00:28 The most important part here is the authorization callback URL. It needs to point back to your application. After you’ve registered the application, you’ll be redirected to a page with settings for the application.
You need to generate a new Client Secret to allow Django
social-auth to use GitHub. So click the button, scroll down, and copy the Client Secret to somewhere secure. As GitHub informs you, you won’t be able to see it again. So make sure you don’t skip this step.
02:27 The newly created user has the same username as your GitHub handle and doesn’t have a password. In the next section of the course, we’ll take a look at how to fix a problem that’s been created by enabling the GitHub login.
Become a Member to join the conversation.