Class: OmniAuth::Strategies::XeroOauth2
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::XeroOauth2
- Defined in:
- lib/omniauth/strategies/xero_oauth2.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/omniauth/strategies/xero_oauth2.rb', line 20 def super.tap do |params| [:authorize_options].each do |k| params[k] = request.params[k.to_s] unless [nil, ''].include?(request.params[k.to_s]) end end end |
#callback_url ⇒ Object
28 29 30 |
# File 'lib/omniauth/strategies/xero_oauth2.rb', line 28 def callback_url [:redirect_uri] || (full_host + callback_path) end |