-
Notifications
You must be signed in to change notification settings - Fork 742
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 credentials
thenOAuth Client ID
- Select
web application
- Name it whatever you like
if-me-test
if 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 ID
andclient secret
safe - 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
env
you should see yourclient_id
andclient_secret
- Now go back to your Google API plus
- Click on the button at the top that says "Enable"