#30: update scope for github omniauth

This commit is contained in:
Vokhmin Alexey V 2013-03-26 17:43:29 +04:00
parent 960aecb6d5
commit f903944e6d
1 changed files with 1 additions and 1 deletions

View File

@ -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