Class: OmniAuth::Strategies::DailyMile

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

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



34
35
36
37
38
39
# File 'lib/omniauth/strategies/dailymile.rb', line 34

def raw_info
  # set these here instead of using 'option token_params' since omniauth-oath2 is passing those incorrectly
  access_token.options[:param_name] = 'oauth_token'
  access_token.options[:mode] = :query
  @raw_info = JSON.parse access_token.get('/people/me.json').body
end

#request_phaseObject



12
13
14
# File 'lib/omniauth/strategies/dailymile.rb', line 12

def request_phase
  super
end