Class: OmniAuth::Strategies::Foursquare
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Foursquare
- Defined in:
- lib/omniauth/strategies/foursquare.rb
Instance Method Summary collapse
Instance Method Details
#auth_hash ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/omniauth/strategies/foursquare.rb', line 43 def auth_hash OmniAuth::Utils.deep_merge(super, client_params.merge( { grant_type: 'authorization_code' } )) end |
#raw_info ⇒ Object
52 53 54 55 56 |
# File 'lib/omniauth/strategies/foursquare.rb', line 52 def raw_info access_token.[:mode] = :query access_token.[:param_name] = :oauth_token @raw_info ||= access_token.get('https://api.foursquare.com/v2/users/self?v=20140128').parsed['response']['user'] end |
#request_phase ⇒ Object
38 39 40 41 |
# File 'lib/omniauth/strategies/foursquare.rb', line 38 def request_phase [:authorize_params] = client_params.merge([:authorize_params]) super end |