Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Last active March 9, 2016 04:25
Show Gist options
  • Save richardsondx/351578258368862ae5c6 to your computer and use it in GitHub Desktop.
Save richardsondx/351578258368862ae5c6 to your computer and use it in GitHub Desktop.
What am I missing?
# (google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error
config.omniauth :google_oauth2, 'key', 'secret',
{
:scope => ['https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/gmail.labels', 'https://www.googleapis.com/auth/userinfo.profile'],
:prompt => "select_account",
:image_aspect_ratio => "square",
:image_size => 50,
:include_granted_scopes => true,
:access_type => 'offline'
}
(google_oauth2) Callback phase initiated.
(google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error,
oauth2 (1.1.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0, < 1.5.2)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (1.3.1)
hashie (>= 1.2, < 4)
rack (>= 1.0, < 3)
omniauth-google-oauth2 (0.3.1)
jwt (~> 1.0)
multi_json (~> 1.3)
omniauth (>= 1.1.1)
omniauth-oauth2 (>= 1.3.1)
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment