Documentation ¶
Index ¶
- func WithCustomTokenIssuerClients(clients map[string]jwtValidator.TokenIssuerClient) func(o *Options)
- func WithGetOpenIDConfiguration(f GetOpenIDConfigurationFunc) func(o *Options)
- type AuthorityConfig
- type Config
- type GetOpenIDConfigurationFunc
- type Options
- type TokenTrustVerificationConfig
- type Validator
- func (v *Validator) AddCloseFunc(f func())
- func (v *Validator) Close()
- func (v *Validator) GetParser() *jwtValidator.Validator
- func (v *Validator) OpenIDConfiguration() []openid.Config
- func (v *Validator) Parse(token string) (jwt.MapClaims, error)
- func (v *Validator) ParseWithClaims(ctx context.Context, token string, claims jwt.Claims) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCustomTokenIssuerClients ¶ added in v2.23.0
func WithCustomTokenIssuerClients(clients map[string]jwtValidator.TokenIssuerClient) func(o *Options)
func WithGetOpenIDConfiguration ¶ added in v2.23.0
func WithGetOpenIDConfiguration(f GetOpenIDConfigurationFunc) func(o *Options)
Types ¶
type AuthorityConfig ¶ added in v2.21.0
type AuthorityConfig struct { Authority string `yaml:"authority" json:"authority"` HTTP client.Config `yaml:"http" json:"http"` }
func (*AuthorityConfig) Validate ¶ added in v2.21.0
func (c *AuthorityConfig) Validate() error
type Config ¶
type Config struct { Audience string `yaml:"audience" json:"audience"` Endpoints []AuthorityConfig `yaml:"endpoints" json:"endpoints"` TokenVerification TokenTrustVerificationConfig `yaml:"tokenTrustVerification,omitempty" json:"tokenTrustVerification,omitempty"` Authority *string `yaml:"authority,omitempty" json:"authority,omitempty"` // deprecated HTTP *client.Config `yaml:"http,omitempty" json:"http,omitempty"` // deprecated }
type GetOpenIDConfigurationFunc ¶ added in v2.23.0
type TokenTrustVerificationConfig ¶ added in v2.23.0
type TokenTrustVerificationConfig struct {
CacheExpiration time.Duration `yaml:"cacheExpiration,omitempty" json:"cacheExpiration,omitempty"`
}
func (*TokenTrustVerificationConfig) Validate ¶ added in v2.23.0
func (c *TokenTrustVerificationConfig) Validate() error
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator Client.
func (*Validator) AddCloseFunc ¶
func (v *Validator) AddCloseFunc(f func())
AddCloseFunc adds a function to be called by the Close method. This eliminates the need for wrapping the Client.
func (*Validator) GetParser ¶ added in v2.21.0
func (v *Validator) GetParser() *jwtValidator.Validator
func (*Validator) OpenIDConfiguration ¶
Click to show internal directories.
Click to hide internal directories.