Class: Gitlab::Auth::Ldap::AuthHash
- Inherits:
-
OAuth::AuthHash
- Object
- OAuth::AuthHash
- Gitlab::Auth::Ldap::AuthHash
- Defined in:
- lib/gitlab/auth/ldap/auth_hash.rb
Instance Attribute Summary
Attributes inherited from OAuth::AuthHash
Instance Method Summary collapse
Methods inherited from OAuth::AuthHash
#email, #has_attribute?, #initialize, #location, #name, #password, #provider
Constructor Details
This class inherits a constructor from Gitlab::Auth::OAuth::AuthHash
Instance Method Details
#uid ⇒ Object
9 10 11 |
# File 'lib/gitlab/auth/ldap/auth_hash.rb', line 9 def uid @uid ||= Gitlab::Auth::Ldap::Person.normalize_dn(super) end |
#username ⇒ Object
13 14 15 16 17 |
# File 'lib/gitlab/auth/ldap/auth_hash.rb', line 13 def username super.tap do |username| username.downcase! if ldap_config.lowercase_usernames end end |