class OmniAuth::Strategies::Fiken
Public Instance Methods
basic_auth_header()
click to toggle source
# File lib/omniauth-fiken.rb, line 34 def basic_auth_header "Basic " + Base64.strict_encode64("#{options[:client_id]}:#{options[:client_secret]}") end
build_access_token()
click to toggle source
The Fiken
API requires HTTP Basic Authentication when exchanging the code for a token (i.e. when POSTing to /v1/oauth/token)
Calls superclass method
# File lib/omniauth-fiken.rb, line 27 def build_access_token options.token_params.merge!( headers: { 'Authorization' => basic_auth_header }, ) super end
callback_url()
click to toggle source
# File lib/omniauth-fiken.rb, line 38 def callback_url full_host + script_name + callback_path end