Documentation ¶
Overview ¶
Package auth provides an IP and user credentials based authentication handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
Authentication implements the AuthHandler interface.
func New ¶
New creates a new Authentication config. ips are required for IP access restriction. user is required for LOGIN, PLAIN and CRAM-MD5 authentication. hash (recommended) or pass is required for LOGIN and PLAIN authentication. pass is required for CRAM-MD5 authentication (requires plain text password).
Click to show internal directories.
Click to hide internal directories.