Google OAuth Keys¶
Follow the following steps to generate Google OAuth credentials to use for development and testing. These are used for the log-in process, and are functionally essential for doing much of anything with Inthe.AM.
Go to Google’s developer console.
Create a new project.
From within your project, create a new “Client ID” by going to “APIs & Auth” > “Credentials” and clicking on the “Create New Client ID” button.
Select “Web Application”
Enter the following for ‘Authorized Javascript Origins’:
http://127.0.0.1 http://localhost
Enter the following for ‘Authorized Redirect URI’:
http://127.0.0.1:8000/complete/google-oauth2/
Save
You will be presented with your newly-generated client ID.
Enter the value of “Client ID” into your
environment_variables.sh
as the value of theTWWEB_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
.Enter the value of “Client Secret” into your
environment_variables.sh
as the value of theTWWEB_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
.If you are currently running an existing
runserver
session, you will want to close it, runsource environment_variables.sh
to update your environment with the environment variables you’ve set, and start therunserver
once again.