generates

package
v0.0.0-...-865f097 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTAccessClaims

type JWTAccessClaims struct {
	jwt.StandardClaims
}

JWTAccessClaims jwt claims

func (*JWTAccessClaims) Valid

func (a *JWTAccessClaims) Valid() error

Valid claims verification

type JWTAccessGenerate

type JWTAccessGenerate struct {
	SignedKeyID  string
	SignedKey    []byte
	PubKey       []byte
	SignedMethod jwt.SigningMethod
}

JWTAccessGenerate generate the jwt access token

func NewJWTAccessGenerate

func NewJWTAccessGenerate(kid string, key, pubKey []byte, method jwt.SigningMethod) *JWTAccessGenerate

NewJWTAccessGenerate create to generate the jwt access token instance

func (*JWTAccessGenerate) Token

func (a *JWTAccessGenerate) Token(ctx context.Context, data *jwts.GenerateBasic, isGenRefresh bool) (string, string, error)

Token based on the UUID generated token

func (*JWTAccessGenerate) Verify

func (a *JWTAccessGenerate) Verify(ctx context.Context, ssoToken string) map[string]interface{}

Verify Verify token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL