Class: OmniAuth::Strategies::Clickfunnels

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

Constant Summary collapse

CUSTOM_PROVIDER_URL =
ENV['AUTH_PROVIDER_URL'] || "http://custom-provider-goes-here"
CUSTOM_PROVIDER_ME_URL =
ENV['AUTH_PROVIDER_ME_URL'] || "/api/attributes/me.json"

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



45
46
47
# File 'lib/omniauth/strategies/clickfunnels.rb', line 45

def callback_url
  full_host + script_name + callback_path
end

#raw_infoObject



38
39
40
# File 'lib/omniauth/strategies/clickfunnels.rb', line 38

def raw_info
  @raw_info ||= access_token.get(CUSTOM_PROVIDER_ME_URL).parsed
end