Class: OmniAuth::Strategies::LDAP

Inherits:
Object
  • Object
show all
Defined in:
lib/contour/fixes/omniauth.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}, &block) ⇒ LDAP

include OmniAuth::Strategy



9
10
11
12
13
14
15
# File 'lib/contour/fixes/omniauth.rb', line 9

def initialize(app, options = {}, &block)
  # Rails.logger.debug "Contour::Fixes => Omniauth::Strategies::LDAP::initialize"
  super(app, options[:name] || :ldap, options.dup, &block)
  @name_proc = (@options.delete(:name_proc) || Proc.new {|name| name})
  @adaptor = OmniAuth::Strategies::LDAP::Adaptor.new(options)
  @domain = options[:domain] # Added
end