Documentation ¶
Overview ¶
Package httpauth handles HTTP Basic authentication with supplied authentication functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthProvider ¶
AuthProvider is a function that given a username, password and request, authenticates the user.
type BasicAuthHandler ¶
type BasicAuthHandler struct { Handler http.Handler RemoveAuth bool *BasicAuthWrapper }
BasicAuthHandler needs a comment
func (*BasicAuthHandler) ServeHTTP ¶
func (b *BasicAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP Satisfies the http.Handler interface for basicAuth.
type BasicAuthWrapper ¶
type BasicAuthWrapper struct { Cache *cache.Cache Realm string Logger *zap.Logger AuthFunc AuthProvider CacheDuration time.Duration }
BasicAuthWrapper needs a comment
Click to show internal directories.
Click to hide internal directories.