Class: OmniAuth::Strategies::Uber

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/uber.rb

Constant Summary collapse

DEFAULT_SCOPE =
'profile'

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



24
25
26
# File 'lib/omniauth/strategies/uber.rb', line 24

def raw_info
  @raw_info ||= access_token.params['user'] || {}
end

#request_phaseObject



28
29
30
31
32
33
34
35
36
# File 'lib/omniauth/strategies/uber.rb', line 28

def request_phase
  options[:authorize_params] = {
    :client_id     => options['client_id'],
    :response_type => 'code',
    :scopes        => (options['scope'] || DEFAULT_SCOPE)
  }

  super
end