Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface { // AuthenticateToken maps a bearer token to a username and set of groups. AuthenticateToken(string) (username string, groups []string, err error) }
Authenticator is a method for authenticating a bearer token.
type Config ¶
type Config struct { // Backend address, authentication strategy, and TLS configuration. Backend string BackendAuth func(r *http.Request) BackendTLSConfig *tls.Config // Authenticator for evaluating bearer tokesn of client requests. Authenticator Authenticator // Optional logger to use when reporting errors. If not supplied, the // proxy uses the log package's default logger. Logger *log.Logger }
Config holds fields for customizing the auth proxy behavior.
Click to show internal directories.
Click to hide internal directories.