Class: OmniAuth::Strategies::Suunto

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

Instance Method Summary collapse

Instance Method Details

#auth_hashObject



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_urlObject



23
24
25
# File 'lib/omniauth/strategies/suunto.rb', line 23

def callback_url	
  full_host + script_name + callback_path	
end

#raw_infoObject



31
32
33
# File 'lib/omniauth/strategies/suunto.rb', line 31

def raw_info
  @raw_info ||= access_token.params
end

#request_phaseObject



18
19
20
21
# File 'lib/omniauth/strategies/suunto.rb', line 18

def request_phase
  options[:authorize_params] = client_params.merge(options[:authorize_params])
  super
end