Class: OmniAuth::Strategies::RunKeeper

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

Instance Method Summary collapse

Instance Method Details

#query_stringObject



39
40
41
# File 'lib/omniauth/strategies/runkeeper.rb', line 39

def query_string
  '' # The code param shouldn't be sent as part of the callback_url in the callback phase
end

#raw_infoObject



31
32
33
34
35
36
37
# File 'lib/omniauth/strategies/runkeeper.rb', line 31

def raw_info
  @raw_info ||= begin
    user    = MultiJson.decode(access_token.get('/user').body)
    profile = MultiJson.decode(access_token.get(user['profile']).body)
    { 'userID' => user['userID'] }.merge(profile)
  end
end