Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAudience for Auth0. ErrInvalidAudience = errors.New("invalid audience") // ErrInvalidIssuer for Auth0. ErrInvalidIssuer = errors.New("invalid issuer") // ErrInvalidAlgorithm for Auth0. ErrInvalidAlgorithm = errors.New("invalid algorithm") // ErrInvalidToken for Auth0. ErrInvalidToken = errors.New("invalid token") )
View Source
var ( // ErrInvalidResponse from Auth0. ErrInvalidResponse = errors.New("invalid response") )
View Source
var ( // ErrMissingCertificate from Auth0. ErrMissingCertificate = errors.New("missing certificate") )
Functions ¶
func NewGenerator ¶
func NewGenerator(cfg *Config, httpCfg *http.Config, logger *zap.Logger, cache *ristretto.Cache) jwt.Generator
NewGenerator for Auth0.
func NewVerifier ¶
func NewVerifier(cfg *Config, cert Certificator) jwt.Verifier
NewVerifier for Auth0.
Types ¶
type Certificator ¶
Certificator for Auth0.
func NewCertificator ¶
func NewCertificator(cfg *Config, httpCfg *http.Config, logger *zap.Logger, cache *ristretto.Cache) Certificator
NewCertificator for Auth0.
type Config ¶
type Config struct { URL string `yaml:"url"` ClientID string `yaml:"client_id"` ClientSecret string `yaml:"client_secret"` Audience string `yaml:"audience"` Issuer string `yaml:"issuer"` Algorithm string `yaml:"algorithm"` JSONWebKeySet string `yaml:"json_web_key_set"` }
Config for Auth0.
Click to show internal directories.
Click to hide internal directories.