Class: OmniAuth::Strategies::Authentiq

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

Constant Summary collapse

BASE_URL =

Set the base URL

'https://connect.authentiq.io/'

Instance Method Summary collapse

Instance Method Details

#callback_urlObject

Over-ride callback_url definition to maintain compatibility with omniauth-oauth2 >= 1.4.0

See: github.com/intridea/omniauth-oauth2/issues/81



61
62
63
64
# File 'lib/omniauth/strategies/authentiq.rb', line 61

def callback_url
  # Fixes regression in omniauth-oauth2 v1.4.0 by https://github.com/intridea/omniauth-oauth2/commit/85fdbe117c2a4400d001a6368cc359d88f40abc7
  options[:callback_url] || (full_host + script_name + callback_path)
end

#raw_infoObject



53
54
55
# File 'lib/omniauth/strategies/authentiq.rb', line 53

def raw_info
  @raw_info ||= access_token.get('/userinfo').parsed
end