-
Notifications
You must be signed in to change notification settings - Fork 242
Testing Google OAuth login
Roey Darwish Dror edited this page Sep 19, 2017
·
1 revision
- Go to Google API Console.
- Click on the dropdown menu at the top that says "Select a project", and then click on the plus sign to create a new project. Name the project "anyway".
- Go to "Credentials", click "Create credentials" and then choose "OAuth client ID". You'll be asked to configure the OAuth screen, so just fill in the minimum required for clicking "apply".
- Choose "Web Application".
- Under "Authorized JavaScript origins" fill in
http://localhost:5000
. - Under "Authorized redirect URIs" fill in
http://localhost:5000/callback/google
- Click "create".
- Set the environment variables
GOOGLE_LOGIN_CLIENT_ID
andGOOGLE_LOGIN_CLIENT_SECRET
to the keys that you got and launch the server. You should be able to login now.
Do commit these keys into the repository and do not share them with anyone.