Class: OmniAuth::Strategies::Groupme
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Groupme
- Defined in:
- lib/omniauth/strategies/groupme.rb
Instance Method Summary collapse
Instance Method Details
#auth_hash ⇒ Object
35 36 37 38 |
# File 'lib/omniauth/strategies/groupme.rb', line 35 def auth_hash OmniAuth::Utils.deep_merge(super, client_params.merge({ :grant_type => 'authorization_code'})) end |
#raw_info ⇒ Object
40 41 42 43 44 45 |
# File 'lib/omniauth/strategies/groupme.rb', line 40 def raw_info access_token.[:mode] = :query access_token.[:param_name] = :oauth_token response = access_token.get('https://v2.groupme.com/users/me').parsed['response'] @raw_info ||= response['user'] end |
#request_phase ⇒ Object
30 31 32 33 |
# File 'lib/omniauth/strategies/groupme.rb', line 30 def request_phase [:authorize_params] = client_params.merge([:authorize_params]) super end |