Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuthLDAP ¶
func BasicAuthLDAP(ldapAuth *LDAPAuth, next httprouter.Handle) httprouter.Handle
BasicAuthLDAP is a middleware wrapping the target HTTP HandlerFunc. It retrieves BasicAuth credentials and authenticate against LDAP.
Types ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
func NewBasicAuth ¶
func NewBasicAuth(cfg config.AuthConfig) (BasicAuth, error)
func (*BasicAuth) Wrap ¶
func (b *BasicAuth) Wrap(next httprouter.Handle) httprouter.Handle
type LDAPAuth ¶
type LDAPAuth struct {
// contains filtered or unexported fields
}
func NewLDAPAuth ¶
Click to show internal directories.
Click to hide internal directories.