Sha256: a82361c8fe793efeafaa873597e965dc3fa127ad4913aa68f164c5875ec35c5a
Contents?: true
Size: 906 Bytes
Versions: 2
Compression:
Stored size: 906 Bytes
Contents
# encoding: utf-8 require 'devise' require 'net/ldap' require 'devise_ldap_multiple/exception' require 'devise_ldap_multiple/logger' require 'devise_ldap_multiple/ldap/adapter' require 'devise_ldap_multiple/ldap/connection' # Nearly all configuration is in each scope.yml file under config/ldap/ for each scope. module Devise # The default scope to use if devise doesn't map to a scope and a scope isn't manually specified # Can be overwritten by setting in file config/initializers/devise.rb mattr_accessor :ldap_default_scope @@ldap_default_scope = 'default' end # Add ldap_authenticatable strategy to defaults. Devise.add_module(:ldap_authenticatable, :route => :session, ## This will add the routes, rather than in the routes.rb :strategy => true, :controller => :sessions, :model => 'devise_ldap_multiple/model')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_ldap_multiple-0.9.1 | lib/devise_ldap_multiple.rb |
devise_ldap_multiple-0.9.0 | lib/devise_ldap_multiple.rb |