Class: OmniAuth::Strategies::Suunto
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Suunto
- Defined in:
- lib/omniauth/strategies/suunto.rb
Instance Method Summary collapse
Instance Method Details
#auth_hash ⇒ Object
27 28 29 |
# File 'lib/omniauth/strategies/suunto.rb', line 27 def auth_hash OmniAuth::Utils.deep_merge(super, client_params.merge({grant_type: 'authorization_code'})) end |
#callback_url ⇒ Object
23 24 25 |
# File 'lib/omniauth/strategies/suunto.rb', line 23 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
31 32 33 |
# File 'lib/omniauth/strategies/suunto.rb', line 31 def raw_info @raw_info ||= access_token.params end |
#request_phase ⇒ Object
18 19 20 21 |
# File 'lib/omniauth/strategies/suunto.rb', line 18 def request_phase [:authorize_params] = client_params.merge([:authorize_params]) super end |