class OmniAuth::Strategies::ChannelAdvisor

Constants

NAME_KEY
UID_KEY

Public Instance Methods

callback_url() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/channel_advisor.rb, line 36
def callback_url
  override = options.redirect_uri
  override ? override : super
end
info_hash() click to toggle source
# File lib/omniauth/strategies/channel_advisor.rb, line 41
def info_hash
  @info_hash ||= Array(raw_info).each_with_object({}){|item, result|
    key = item["Type"]
    val = item["Value"]
    result[key] = val if (key && val)
  }
end
raw_info() click to toggle source
# File lib/omniauth/strategies/channel_advisor.rb, line 49
def raw_info
  @raw_info ||= access_token.get('/oauth2/identity').parsed
end