Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶ added in v1.4.0
Authenticator is a generic interface to validate HTTP request credentials. It's returns the authentication result along with the principal (username) if it has one.
type HtpasswdFile ¶ added in v1.4.0
type HtpasswdFile struct {
// contains filtered or unexported fields
}
HtpasswdFile is a map for usernames to passwords.
func NewHtpasswdFromFile ¶ added in v1.4.0
func NewHtpasswdFromFile(path string) (*HtpasswdFile, error)
NewHtpasswdFromFile reads the users and passwords from a htpasswd file and returns them.
Click to show internal directories.
Click to hide internal directories.