lib/omniauth/strategies/gplus.rb in omniauth-gplus-1.1.0 vs lib/omniauth/strategies/gplus.rb in omniauth-gplus-1.1.1
- old
+ new
@@ -5,11 +5,11 @@
site: 'https://www.googleapis.com/oauth2/v1',
authorize_url: 'https://www.google.com/accounts/o8/oauth2/authorization',
token_url: 'https://www.google.com/accounts/o8/oauth2/token'
}
- option :scope, 'email'
+ option :scope, 'userinfo.email'
option :uid_field, :uid
uid do
raw_info['id']
@@ -49,10 +49,10 @@
def format_scopes(scopes)
scopes.split(/,\s*/).map(&method(:format_scope)).join(" ")
end
def format_scope(scope)
- "https://www.googleapis.com/auth/userinfo.#{scope}"
+ "https://www.googleapis.com/auth/#{scope}"
end
def custom_parameters(params)
["scope", "client_options"].each { |k| add_key_to_params(params, k) }
end