Class: OmniAuth::Strategies::Misfit
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Misfit
- Defined in:
- lib/omniauth/strategies/misfit.rb
Constant Summary collapse
- DEFAULT_SCOPE =
'public,birthday,email'
Instance Method Summary collapse
Instance Method Details
#auth_hash ⇒ Object
43 44 45 |
# File 'lib/omniauth/strategies/misfit.rb', line 43 def auth_hash OmniAuth::Utils.deep_merge(super, client_params.merge({:grant_type => 'authorization_code'})) end |
#raw_info ⇒ Object
47 48 49 |
# File 'lib/omniauth/strategies/misfit.rb', line 47 def raw_info @raw_info ||= MultiJson.load(access_token.get('/move/resource/v1/user/me/profile').body) end |
#request_phase ⇒ Object
38 39 40 41 |
# File 'lib/omniauth/strategies/misfit.rb', line 38 def request_phase [:authorize_params] = client_params.merge([:authorize_params]) super end |