class OmniAuth::Strategies::BigCommerce
BigCommerce
OAuth strategy for OmniAuth
Public Instance Methods
callback_url()
click to toggle source
Exclude query string in callback url. This used to be part of omniauth-oauth2, but was removed in 1.4.0: github.com/intridea/omniauth-oauth2/pull/70
# File lib/omniauth/strategies/bigcommerce.rb, line 64 def callback_url full_host + script_name + callback_path end
raw_info()
click to toggle source
# File lib/omniauth/strategies/bigcommerce.rb, line 58 def raw_info @raw_info ||= access_token.params end
token_params()
click to toggle source
Make sure to pass scope and context through to the token exchange call
Calls superclass method
# File lib/omniauth/strategies/bigcommerce.rb, line 79 def token_params super.tap do |params| options[:token_options].each do |k| params[k] = request.params[k.to_s] unless [nil, ''].include?(request.params[k.to_s]) end end end