Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HMACKeyBytes ¶
Types ¶
type BearerTokenRoundTripper ¶ added in v0.40.0
type BearerTokenRoundTripper struct {
BearerToken string
Base http.RoundTripper
}
type ClientAuth ¶ added in v0.37.0
type ClientAuth struct {
Config ClientConfig
}
func (ClientAuth) AddAuth ¶ added in v0.37.0
func (a ClientAuth) AddAuth(req *http.Request) error
AddAuth adds the HMAC token to the request as a bearer token
TODO: This should be refactored to use the request Body to calculate the digest /token
func (ClientAuth) HTTPClient ¶ added in v0.40.0
func (a ClientAuth) HTTPClient() (*http.Client, error)
type ClientConfig ¶ added in v0.37.0
type ClientConfig struct {
CommonConfig `mapstructure:",squash"`
}
type CommonConfig ¶ added in v0.37.0
type Handler ¶ added in v0.37.0
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶ added in v0.37.0
func NewHandler(cfg ServerConfig) *Handler
func (*Handler) AuthRequest ¶ added in v0.37.0
type ServerConfig ¶ added in v0.37.0
type ServerConfig struct {
CommonConfig `mapstructure:",squash"`
// HTTP Header to use as data input
PrincipalHeader string `mapstructure:"principal-header"`
}
Click to show internal directories.
Click to hide internal directories.