Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(cfg ValidatorConfig, opts ...ValidatorOption) (*Validator, error)
type ValidatorConfig ¶
type ValidatorConfig struct {
ClientID string `split_words:"true" required:"true"`
ConnectionURL string `split_words:"true" required:"true"`
Issuer string `split_words:"true" required:"false"`
// Optional Skip Checks
SkipClientIDCheck bool `split_words:"true" default:"false"`
SkipExpiryCheck bool `split_words:"true" default:"false"`
SkipIssuerCheck bool `split_words:"true" default:"false"`
}
type ValidatorOption ¶
type ValidatorOption func(validator *Validator)
func JWTClientValidatorOpt ¶
func JWTClientValidatorOpt(signingKey string) ValidatorOption
Click to show internal directories.
Click to hide internal directories.