Documentation ¶
Index ¶
- Constants
- Variables
- type AddonTool
- type JwtAlg
- type JwtClaims
- 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
Constants ¶
View Source
const ( JwtHeaderKid = "kid" JwtHeaderAlg = "alg" )
Variables ¶
View Source
var (
ErrJwtInvalidAlgCombination = errors.New("invalid algorithm combination")
)
Functions ¶
This section is empty.
Types ¶
type AddonTool ¶
type AddonTool struct {
// contains filtered or unexported fields
}
func NewAddonTool ¶
func NewAddonTool(keyStorage secretapi.KeyStorage) *AddonTool
func (*AddonTool) SignJwtToken ¶
type JwtAlg ¶
type JwtAlg string
const ( JwtAlgHS256 JwtAlg = "HS256" JwtAlgHS384 JwtAlg = "HS384" JwtAlgHS512 JwtAlg = "HS512" JwtAlgRS256 JwtAlg = "RS256" JwtAlgRS384 JwtAlg = "RS384" JwtAlgRS512 JwtAlg = "RS512" JwtAlgPS256 JwtAlg = "PS256" JwtAlgPS384 JwtAlg = "PS384" JwtAlgPS512 JwtAlg = "PS512" JwtAlgES256 JwtAlg = "ES256" JwtAlgES384 JwtAlg = "ES384" JwtAlgES512 JwtAlg = "ES512" )
type JwtClaims ¶ added in v0.11.10
type JwtClaims map[string]interface{}
func (JwtClaims) SetAudience ¶ added in v0.11.10
func (JwtClaims) SetSubject ¶ added in v0.11.10
Click to show internal directories.
Click to hide internal directories.