Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoCreds is returned when no basic auth credentials are defined ErrNoCreds = errors.New("no basic auth credentials defined") // ErrAuthFail is returned when the client fails basic authentication ErrAuthFail = errors.New("invalid basic auth username or password") ErrUnauthorized = errors.New("Unauthorized") )
Functions ¶
func Middleware ¶
func Middleware(auth Authorizer) buffalo.MiddlewareFunc
Middleware enables basic authentication
Types ¶
Click to show internal directories.
Click to hide internal directories.