Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAuthSchemes ¶
func LoadAuthSchemes(cfg map[string]config.AuthScheme) (map[string]AuthScheme, error)
LoadAuthSchemes takes the 'proxy.auth' configuration option and returns a map auth name => auth implementation of a specific type.
Types ¶
type AuthScheme ¶
type AuthScheme interface {
// Authorized returns whether request satisfies the authorization scheme.
Authorized(request *http.Request, response http.ResponseWriter) bool
}
AuthScheme defines an authentication scheme. See - docs/feature/authorization.md - docs/ref/proxy.auth.md
Click to show internal directories.
Click to hide internal directories.