Documentation
¶
Index ¶
- func New(dp dataprotection.Provider, provider jwt.Provider) jwt.Provider
- type Provider
- func (p *Provider) GetRevocation() jwt.Revocation
- func (p *Provider) Issuer() string
- func (p *Provider) ParseToken(ctx context.Context, token string, cfg *jwt.VerifyConfig) (jwt.MapClaims, error)
- func (p *Provider) PublicKey() crypto.PublicKey
- func (p *Provider) SetRevocation(r jwt.Revocation)
- func (p *Provider) Sign(ctx context.Context, claims jwt.MapClaims) (string, error)
- func (p *Provider) TokenExpiry() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
Provider of Access Token
func (*Provider) GetRevocation ¶ added in v0.22.184
func (p *Provider) GetRevocation() jwt.Revocation
func (*Provider) ParseToken ¶
func (p *Provider) ParseToken(ctx context.Context, token string, cfg *jwt.VerifyConfig) (jwt.MapClaims, error)
Claims returns claims from the Access Token, or nil if `auth` is not Access Token
func (*Provider) SetRevocation ¶ added in v0.22.184
func (p *Provider) SetRevocation(r jwt.Revocation)
func (*Provider) TokenExpiry ¶ added in v0.11.0
TokenExpiry specifies token expiration period
Click to show internal directories.
Click to hide internal directories.