Skip to content

Setup Google Auth for Testing

Alexia McDonald edited this page Sep 5, 2017 · 2 revisions

Setup Google Auth for Testing

  • Log in to your Google API account

  • Create a credential

  • Click on create credentials then OAuth 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 and client secret safe.

  • Add to 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 your client_id and client_secret

  • Now go back to your Google API plus

  • Click on the button at the top that says "Enable"

Clone this wiki locally