Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyAuthenticationClientConfig = AuthenticationClientConfig{} EmptyAuthenticationServerConfig = AuthenticationServerConfig{} )
Functions ¶
func AuthHandlerFunc ¶
func AuthHandlerFunc(cfg *AuthenticationServerConfig, origHandler http.HandlerFunc) http.HandlerFunc
func NullHandler ¶
func NullHandler(next http.HandlerFunc) http.HandlerFunc
Types ¶
type AuthenticationClientConfig ¶
type AuthenticationClientConfig struct {
BasicAuthConfig basic.BasicAuthClientConfig `mapstructure:"basic"`
GitHubAuthConfig github.GitHubAuthClientConfig `mapstructure:"github"`
HMACAuthConfig hmac.HMACAuthClientConfig `mapstructure:"hmac"`
}
need something to deserialize and append details to http.Request
func (AuthenticationClientConfig) IsEmpty ¶
func (c AuthenticationClientConfig) IsEmpty() bool
type AuthenticationServerConfig ¶
type AuthenticationServerConfig struct {
BasicAuthConfig basic.BasicAuthServerConfig `mapstructure:"basic"`
GitHubAuthConfig github.GitHubAuthServerConfig `mapstructure:"github"`
HMACAuthConfig hmac.HMACAuthServerConfig `mapstructure:"hmac"`
}
func (AuthenticationServerConfig) IsEmpty ¶
func (c AuthenticationServerConfig) IsEmpty() bool
type ClientAuth ¶
func AuthClient ¶
func AuthClient(authConfig AuthenticationClientConfig) ClientAuth
TODO: Choose a better name
Click to show internal directories.
Click to hide internal directories.