class OmniAuth::Strategies::Ibmisam
Constants
- HEADER_NAMES
- LOGOUT_PATH
Public Class Methods
validate_options(options)
click to toggle source
# File lib/omniauth/strategies/ibmisam.rb, line 29 def self.validate_options(options) if options.has_key?(:header_type) && !HEADER_NAMES.keys.include?(options[:header_type].to_sym) raise(ConfigurationError, "Invalid option: #{options[:header_type]} for IBMISAM header_type. Use one of: #{HEADER_NAMES.keys.join(', ')}") end end
Public Instance Methods
request_phase()
click to toggle source
# File lib/omniauth/strategies/ibmisam.rb, line 15 def request_phase if uid redirect callback_path else [401, {}, ["Unauthorized (Missing external authentication)"]] end end
Private Instance Methods
header_type()
click to toggle source
# File lib/omniauth/strategies/ibmisam.rb, line 36 def header_type options.header_type.to_sym end
rack_header()
click to toggle source
# File lib/omniauth/strategies/ibmisam.rb, line 40 def rack_header header = HEADER_NAMES[header_type] @rack_header ||= "HTTP_#{header.gsub('-','_')}".upcase end