Documentation
¶
Index ¶
- func HandlerFunc(cfg *ServerConfig, origHandler http.HandlerFunc) (http.HandlerFunc, error)
- func MultiAuthnHandlerFunc(cfg *ServerConfig, origHandler http.HandlerFunc) http.HandlerFunc
- func NullHandler(next http.HandlerFunc) http.HandlerFunc
- type Authenticator
- type ClientAuth
- type ClientConfig
- type GenericAuthConfig
- type Handler
- type Middleware
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFunc ¶ added in v0.37.0
func HandlerFunc(cfg *ServerConfig, origHandler http.HandlerFunc) (http.HandlerFunc, error)
func MultiAuthnHandlerFunc ¶ added in v0.37.0
func MultiAuthnHandlerFunc(cfg *ServerConfig, origHandler http.HandlerFunc) http.HandlerFunc
func NullHandler ¶
func NullHandler(next http.HandlerFunc) http.HandlerFunc
Types ¶
type Authenticator ¶ added in v0.37.0
type ClientAuth ¶
type ClientConfig ¶ added in v0.37.0
type ClientConfig struct {
BasicAuthConfig basic.ClientConfig `mapstructure:"basic"`
GitHubAuthConfig github.ClientConfig `mapstructure:"github"`
HMACAuthConfig hmac.ClientConfig `mapstructure:"hmac"`
}
need something to deserialize and append details to http.Request
type GenericAuthConfig ¶ added in v0.37.0
type Handler ¶ added in v0.37.0
type Handler struct {
Config ServerConfig
// contains filtered or unexported fields
}
func NewHandler ¶ added in v0.37.0
func NewHandler(cfg *ServerConfig) (*Handler, error)
type Middleware ¶ added in v0.37.0
type ServerConfig ¶ added in v0.37.0
type ServerConfig struct {
BasicAuthConfig basic.ServerConfig `mapstructure:"basic"`
GitHubAuthConfig github.ServerConfig `mapstructure:"github"`
HMACAuthConfig hmac.ServerConfig `mapstructure:"hmac"`
Providers []string `mapstructure:"providers"`
}
Click to show internal directories.
Click to hide internal directories.