Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(authn Authenticator, whitelist ...string) goa.Middleware
NewMiddleware creates a static auth middleware.
Types ¶
type Authenticator ¶
Authenticator is a generic interface to validate an HTTP request
type HtpasswdFile ¶
type HtpasswdFile struct {
// contains filtered or unexported fields
}
HtpasswdFile is a map for usernames to passwords.
func NewHtpasswdFromFile ¶
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.