From f903944e6df3d6edc232365b5ecd86027cbc6a4b Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 26 Mar 2013 17:43:29 +0400 Subject: [PATCH] #30: update scope for github omniauth --- config/initializers/devise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index a0b635a4f..f7cadfd61 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -194,7 +194,7 @@ Devise.setup do |config| config.omniauth :facebook, APP_CONFIG['keys']['facebook']['id'], APP_CONFIG['keys']['facebook']['secret'] config.omniauth :google_oauth2, APP_CONFIG['keys']['google']['id'], APP_CONFIG['keys']['google']['secret'], {:access_type => 'offline', :approval_prompt => ''} - config.omniauth :github, APP_CONFIG['keys']['github']['id'], APP_CONFIG['keys']['github']['secret'], {:scope => 'user'} + config.omniauth :github, APP_CONFIG['keys']['github']['id'], APP_CONFIG['keys']['github']['secret'], {:scope => 'user:email'} # ==> Warden configuration # If you want to use other strategies, that are not supported by Devise, or