class OmniAuth::Strategies::Authentiq
Public Instance Methods
add_openid()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 68 def add_openid unless options.scope.split.include? 'openid' options.scope = options.scope.split.push('openid').join(' ') end end
callback_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/authentiq.rb, line 64 def callback_phase should_sign_out? ? sign_out_phase : super end
callback_url()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 60 def callback_url options[:callback_url] || (full_host + script_name + callback_path) end
decode_idtoken(idtoken)
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 74 def decode_idtoken(idtoken) ::JWT.decode( idtoken, @options.client_secret, true, algorithm: helpers.algorithm(@options), iss: @options.client_options.site, verify_iss: true, aud: @options.client_id, verify_aud: true, verify_iat: true, verify_jti: false, verify_sub: true, leeway: 60 ).first end
raw_info()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 54 def raw_info @raw_info ||= decode_idtoken(access_token.params['id_token']) request.update_param('sid', @raw_info['sid']) @raw_info end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/authentiq.rb, line 49 def request_phase add_openid super end
should_sign_out?()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 91 def should_sign_out? request.post? && request.params.has_key?('logout_token') end
sign_out_phase()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 95 def sign_out_phase backchannel_logout_request.new(self, request).call(options) end
Private Instance Methods
backchannel_logout_request()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 101 def backchannel_logout_request BackChannelLogoutRequest end
helpers()
click to toggle source
# File lib/omniauth/strategies/authentiq.rb, line 105 def helpers Helpers end