Skip to content

Setup Google Auth for Testing

Julia Nguyen edited this page Jul 22, 2018 · 2 revisions
  1. Log in to your Google API account
  2. Create a credential
  3. Click on create credentials then OAuth Client ID
  4. Select web application
  5. Name it whatever you like if-me-test if you so desire
  6. Under 'Authorised JavaScript origins' put http://localhost:3000
  7. Under 'Authorised redirect URIs' put http://localhost:3000/users/auth/google_oauth2/callback
  8. Click save and make sure you keep your client ID and client secret safe
  9. Add to your .bashrc file like so:
export GOOGLE_CLIENT_ID="google_client_id"
export GOOGLE_CLIENT_SECRET="google_client_secret"
  1. Save
  2. Open a new shell up and put env you should see your client_id and client_secret
  3. Now go back to your Google API plus
  4. Click on the button at the top that says "Enable"
Clone this wiki locally