class OmniAuth::Strategies::Suunto
Public Instance Methods
auth_hash()
click to toggle source
Calls superclass method
# 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()
click to toggle source
# File lib/omniauth/strategies/suunto.rb, line 23 def callback_url full_host + script_name + callback_path end
raw_info()
click to toggle source
# File lib/omniauth/strategies/suunto.rb, line 31 def raw_info @raw_info ||= access_token.params end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/suunto.rb, line 18 def request_phase options[:authorize_params] = client_params.merge(options[:authorize_params]) super end
Private Instance Methods
client_params()
click to toggle source
# File lib/omniauth/strategies/suunto.rb, line 37 def client_params { client_id: options[:client_id], redirect_uri: callback_url, response_type: 'code' } end