Class: OmniAuth::Strategies::Clickfunnels
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Clickfunnels
- 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
-
#callback_url ⇒ Object
Omniauth-oauth2 > 1.3 breaks the callback url with extra parameter options github.com/omniauth/omniauth-oauth2/issues/81 and also github.com/omniauth/omniauth-oauth2/commit/26152673224aca5c3e918bcc83075dbb0659717f#commitcomment-13935631.
- #raw_info ⇒ Object
Instance Method Details
#callback_url ⇒ Object
Omniauth-oauth2 > 1.3 breaks the callback url with extra parameter options github.com/omniauth/omniauth-oauth2/issues/81 and also github.com/omniauth/omniauth-oauth2/commit/26152673224aca5c3e918bcc83075dbb0659717f#commitcomment-13935631
45 46 47 |
# File 'lib/omniauth/strategies/clickfunnels.rb', line 45 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
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 |