Documentation
¶
Index ¶
- type AuthorityConfig
- type Config
- 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(token string, claims jwt.Claims) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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"`
Authority *string `yaml:"authority,omitempty" json:"authority,omitempty"` // deprecated
HTTP *client.Config `yaml:"http,omitempty" json:"http,omitempty"` // deprecated
}
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.