Sha256: 93805eb49b76ccd7dd20723c3fd3bf92b3423b804cf357c316c887d0831e118a
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
require 'devise/strategies/authenticatable' module Devise module Strategies class LdapAuthenticatable < Authenticatable def authenticate! resource = valid_password? && mapping.to.authenticate_with_ldap(authentication_hash.merge(password: password)) return fail(:invalid) unless resource if validate(resource) success!(resource) end end end end end Warden::Strategies.add(:ldap_authenticatable, Devise::Strategies::LdapAuthenticatable)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_ldap_authenticatable-0.8.1 | lib/devise_ldap_authenticatable/strategy.rb |
devise_ldap_authenticatable-0.8.0 | lib/devise_ldap_authenticatable/strategy.rb |