Skip to content

Instantly share code, notes, and snippets.

@zernel
Created August 24, 2012 02:06
Show Gist options
  • Save zernel/3444718 to your computer and use it in GitHub Desktop.
Save zernel/3444718 to your computer and use it in GitHub Desktop.
OmniAuth Google OAuth2 strategy – where to get Google Key and Secret
* Go to https://code.google.com/apis/console, log in with your Google account and click on API Access.
* Create OAuth2 credentials by clicking the big blue OAuth2 button.
* Set the callback url and the name of your app (can be edited later)
* The Google Key (as it is referred to by OmniAuth) is the Client ID
* The Google Secret (as it is referred to by OmniAuth) is the Client Secret
* Use those credentials as per your documentation for implementing OAuth2 authentication.
The Google OmniAuth strategy for OAuth2 is here: https://github.com/zquestz/omniauth-google-oauth2. Look in the examples folder for details on the rest of the implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment