Class: OmniAuth::Strategies::XeroOauth2

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



20
21
22
23
24
25
26
# File 'lib/omniauth/strategies/xero_oauth2.rb', line 20

def authorize_params
  super.tap do |params|
    options[:authorize_options].each do |k|
      params[k] = request.params[k.to_s] unless [nil, ''].include?(request.params[k.to_s])
    end
  end
end

#callback_urlObject



28
29
30
# File 'lib/omniauth/strategies/xero_oauth2.rb', line 28

def callback_url
  options[:redirect_uri] || (full_host + callback_path)
end