Documentation
¶
Index ¶
- func AuthenticateAPIKeyHeader(ht HTPasswd, headerValue string) bool
- func NewAPIKeyMiddleware(ht HTPasswd) func(http.Handler) http.Handler
- func NewAPIKeyMiddlewareWithUnauthorized(ht HTPasswd, onUnauthorized func(http.ResponseWriter, *http.Request)) func(http.Handler) http.Handler
- func NewBasicAuthMiddleware(ht HTPasswd) func(http.Handler) http.Handler
- type HTPasswd
- type HTPasswdFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateAPIKeyHeader ¶ added in v0.11.0
func NewAPIKeyMiddleware ¶ added in v0.11.0
func NewAPIKeyMiddlewareWithUnauthorized ¶ added in v0.11.0
Types ¶
type HTPasswd ¶
func NewFromFile ¶
type HTPasswdFile ¶
func (HTPasswdFile) Authenticate ¶
func (s HTPasswdFile) Authenticate(user, password string) (ok bool, present bool)
Click to show internal directories.
Click to hide internal directories.