Documentation
¶
Index ¶
- Variables
- func HandlerFunc(cfg *ServerConfig, origHandler http.HandlerFunc) http.HandlerFunc
- 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 ¶
View Source
var ( EmptyClientConfig = ClientConfig{} EmptyServerConfig = ServerConfig{} )
Functions ¶
func HandlerFunc ¶ added in v0.37.0
func HandlerFunc(cfg *ServerConfig, origHandler http.HandlerFunc) http.HandlerFunc
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
func (ClientConfig) IsEmpty ¶ added in v0.37.0
func (c ClientConfig) IsEmpty() bool
type GenericAuthConfig ¶ added in v0.37.0
type Handler ¶ added in v0.37.0
type Handler struct {
Config ServerConfig
}
func NewHandler ¶ added in v0.37.0
func NewHandler(cfg *ServerConfig) *Handler
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"`
}
func (ServerConfig) IsEmpty ¶ added in v0.37.0
func (c ServerConfig) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.