Versions in this module Expand all Collapse all v0 v0.0.1 Dec 23, 2022 Changes in this version + const ContentTypeJSON + const DefaultListenAddress + const DefaultLogFormat + const DefaultRefreshInterval + const DefaultRefreshTimeout + const DefaultRequestMaxBytes + const HeaderContentType + const LogFormatHuman + const LogFormatJSON + var ErrClaimCheck = errors.New("registered claims check failed") + var ErrInvalidConfig = errors.New("invalid configuration") + var ErrNoConfiguration = errors.New("no configuration provided") + type Config struct + JWKS map[string]JWKSConfig + ListenAddress string + LogFormat string + RequestMaxBytes int64 + func (c Config) DefaultsAndValidate() (Config, error) + type ErrorResponse struct + Code int + Meta RequestMeta + Msg string + type HTTPHandler struct + Logger *zap.Logger + Proxy Proxy + RequestMaxBytes int64 + func (h HTTPHandler) Validate() http.Handler + type JWKSConfig struct + RefreshInterval *jsontype.JSONType[time.Duration] + RefreshTimeout *jsontype.JSONType[time.Duration] + type LogFormat string + type Proxy interface + Validate func(ctx context.Context, args ValidateArgs) (ValidateResults, error) + func NewProxy(multiple map[string]keyfunc.Options, options keyfunc.MultipleOptions) (Proxy, error) + type RequestMeta struct + UUID uuid.UUID + type ValidateArgs struct + Aud []string + Iss []string + Sub []string + Token string + type ValidateRequest struct + Args ValidateArgs + type ValidateResponse struct + Meta RequestMeta + Results ValidateResults + type ValidateResults struct + Success bool