Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error that occurs during the authentication.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents a single LDAP authenticated connection.
type SessionOption ¶
type SessionOption func(conn *Session)
SessionOption customize a authnConn before its registration on authConns.
func WithRefreshable ¶
func WithRefreshable() SessionOption
WithRefreshable allows the given conn to have its expiration date increased after each operation.
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
Sessions register all LDAP authenticated connections that are allowed to perform operations.
func NewSessions ¶
NewSessions returns a new AuthnConns instance.
func (*Sessions) Delete ¶
Delete removes the given connection ID from the list of authenticated connections.
func (Sessions) GC ¶
func (sessions Sessions) GC()
GC removes all expired connections from the list of authenticated.
func (*Sessions) NewSession ¶
NewSession adds the given LDAP object the list of authenticated connections.