Versions in this module Expand all Collapse all v0 v0.11.10 Dec 25, 2024 Changes in this version + type JwtClaims map[string]interface + func (j JwtClaims) SetAudience(audiences []string) JwtClaims + func (j JwtClaims) SetExp(t time.Time) JwtClaims + func (j JwtClaims) SetID(id string) JwtClaims + func (j JwtClaims) SetIat(t time.Time) JwtClaims + func (j JwtClaims) SetIssuer(issuer string) JwtClaims + func (j JwtClaims) SetNbf(t time.Time) JwtClaims + func (j JwtClaims) SetSubject(subject string) JwtClaims v0.11.0 Dec 21, 2024 Changes in this version + const JwtHeaderAlg + const JwtHeaderKid + var ErrJwtInvalidAlgCombination = errors.New("invalid algorithm combination") + type AddonTool struct + func NewAddonTool(keyStorage secretapi.KeyStorage) *AddonTool + func (a *AddonTool) SignJwtToken(keyName string, jwtAlg JwtAlg, claims map[string]interface{}) (string, error) + func (a *AddonTool) VerifyJwtToken(tokenString string) (map[string]interface{}, error) + type JwtAlg string + const JwtAlgES256 + const JwtAlgES384 + const JwtAlgES512 + const JwtAlgHS256 + const JwtAlgHS384 + const JwtAlgHS512 + const JwtAlgPS256 + const JwtAlgPS384 + const JwtAlgPS512 + const JwtAlgRS256 + const JwtAlgRS384 + const JwtAlgRS512