Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuth ¶
type BasicAuth struct {
Users []string `cfg:"users"`
Realm string `cfg:"realm"`
// HeaderField is the name of the header field to set with the username, default X-User
HeaderField string `cfg:"header_field"`
// RemoveHeader removes the Authorization header from the request
RemoveHeader bool `cfg:"remove_header"`
}
BasicAuth mostly copied from echo's BasicAuth middleware.
Click to show internal directories.
Click to hide internal directories.