class OmniAuth::Strategies::Smile
Public Instance Methods
callback_base_url()
click to toggle source
@return [String] Base callback URI without the params since adding the params in (which is default) makes the Smile
API return a 4xx error
# File lib/omniauth/strategies/smile.rb, line 27 def callback_base_url full_host + script_name + callback_path end
token_params()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/smile.rb, line 31 def token_params super.merge( headers: { 'Authorization' => "Basic #{Base64.strict_encode64("#{options.client_id}:#{options.client_secret}")}" }, redirect_uri: callback_base_url ) end