-
Notifications
You must be signed in to change notification settings - Fork 774
Setup Google Auth for Testing
Julia Nguyen edited this page Jul 22, 2018
·
2 revisions
- Log in to your Google API account
- Create a credential
- Click on
create credentialsthenOAuth Client ID - Select
web application - Name it whatever you like
if-me-testif you so desire - Under 'Authorised JavaScript origins' put
http://localhost:3000 - Under 'Authorised redirect URIs' put
http://localhost:3000/users/auth/google_oauth2/callback - Click save and make sure you keep your
client IDandclient secretsafe - Add to your .bashrc file like so:
export GOOGLE_CLIENT_ID="google_client_id"
export GOOGLE_CLIENT_SECRET="google_client_secret"
- Save
- Open a new shell up and put
envyou should see yourclient_idandclient_secret - Now go back to your Google API plus
- Click on the button at the top that says "Enable"