Documentation ¶
Overview ¶
Package provider contains authentication methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBaseProvider ¶
func NewBaseProvider( p security.UserProvider, passwordEncoder password.Encoder, deprecatedPasswordEncoders ...password.Encoder, ) security.Provider
NewBaseProvider creates new provider.
func NewLdapProvider ¶
func NewLdapProvider( config security.LdapConfig, userProvider security.UserProvider, roleProvider security.RoleProvider, ldapDialer LdapDialer, enforcer security.Enforcer, ) security.Provider
NewLdapProvider creates new provider.
Types ¶
type LdapDialer ¶
type LdapDialer interface {
DialURL(config security.LdapConfig) (ldap.Client, error)
}
LdapDialer interface is used to implement creation of LDAP connection.
Click to show internal directories.
Click to hide internal directories.