Skip to content

GitHub OAuth Configuration.

TS Tamarai Selvan edited this page Mar 21, 2023 · 1 revision

Welcome to the Base Django project Setup wiki!

In this wiki, we are going to see about the configuration needed to send out email in the project.

Note: To do this configuration, that GitHub account.

Step 1: Go to your GitHub Settings.
Step 2: Go to Developer Settings.
Step 3: Go to OAuth Application under Developer Settings .
Step 4: Click Create OAuth App.
Step 5: Enter the following:

Enter Application Name: < Application name >
Homepage URL: < Home page URL >
Authorization callback URL: http://localhost:8000/social-auth/complete/github/

Step 6: Click Register Application.
Step 7: Click Generate a new client secret.
Step 8: Copy Client ID & Client secret.
Step 9: Go to Settings.py and navigate to GitHub Authentication Keys. Type details as follows:

SOCIAL_AUTH_GITHUB_KEY = < Paste client ID > SOCIAL_AUTH_GITHUB_SECRET = < Paste client Secret >

Note: Once after completing these Steps, You will Able to log in to your account with GitHub account. Open website in http://localhost:8000/.

Clone this wiki locally