Documentation
¶
Index ¶
- func Generate(ctx context.Context, key ed25519.PrivateKey, issuer v1.Token_Issuer, ...) (string, *jwt.RegisteredClaims)
- func Get(ctx context.Context) *jwt.RegisteredClaims
- func GetAccount(ctx context.Context) *v1.Account
- func Set(ctx context.Context, claims *jwt.RegisteredClaims) context.Context
- func SetAccount(ctx context.Context, a *v1.Account) context.Context
- func Valid(priv ed25519.PrivateKey, token string) (ok bool)
- func ValidWithClaims(priv ed25519.PrivateKey, token string) (claims *jwt.RegisteredClaims, ok bool)
- type Basic
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(ctx context.Context, key ed25519.PrivateKey, issuer v1.Token_Issuer, account string, expires time.Time, scopes ...v1.Token_Scope) (string, *jwt.RegisteredClaims)
func SetAccount ¶ added in v0.0.32
func ValidWithClaims ¶ added in v0.0.26
func ValidWithClaims(priv ed25519.PrivateKey, token string) (claims *jwt.RegisteredClaims, ok bool)
Types ¶
type Basic ¶ added in v0.0.32
func (Basic) GetRequestMetadata ¶ added in v0.0.32
func (Basic) RequireTransportSecurity ¶ added in v0.0.32
type Source ¶ added in v0.0.32
type Source string
func (Source) GetRequestMetadata ¶ added in v0.0.32
func (Source) RequireTransportSecurity ¶ added in v0.0.32
Click to show internal directories.
Click to hide internal directories.