generates

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessGenerate

type AccessGenerate interface {
	Token(ctx context.Context, token *token.Token, isGenRefresh bool) (access, refresh string, err error)
}

type Authorize

type Authorize struct{}

func NewAuthorize

func NewAuthorize() *Authorize

func (*Authorize) Token

func (ag *Authorize) Token(ctx context.Context, t *token.Token) (string, error)

type AuthorizeGenerate

type AuthorizeGenerate interface {
	Token(ctx context.Context, token *token.Token) (code string, err error)
}

type BaseAccess

type BaseAccess struct {
}

func NewBaseAccess

func NewBaseAccess() *BaseAccess

func (*BaseAccess) Token

func (ag *BaseAccess) Token(ctx context.Context, t *token.Token, isGenRefresh bool) (string, string, error)

Token based on the UUID generated token

type JWTAccessClaims

type JWTAccessClaims struct {
	jwt.StandardClaims
}

func (*JWTAccessClaims) Valid

func (a *JWTAccessClaims) Valid() error

type JWTAccessGenerate

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

func NewJWTAccessGenerate

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

func (*JWTAccessGenerate) Token

func (a *JWTAccessGenerate) Token(ctx context.Context, t *token.Token, isGenRefresh bool) (string, string, error)

Jump to

Keyboard shortcuts

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