v1

package
v0.0.0-...-fef550e Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateChain

func GenerateChain(accountId *int64, fingerprint, ip, codeAuthSocialNetwork, audience, id, issuer, subject *string, expiresAt, issuedAt, notBefore *time.Time) *model.ChainOfToken

func GenerateChainWithClaims

func GenerateChainWithClaims(signinMethod jwt.SigningMethod, accountId int64, fingerprint, ip, codeAuthSocialNetwork, audience, id, issuer, subject string, expiresAt, issuedAt, notBefore time.Time) (*model.ChainOfToken, *jwt.Token)

func NewAsymmetricKey

func NewAsymmetricKey(jwtSigningMethod jwt.SigningMethod, certificat interface{}, signKey interface{}, verifyKey interface{}) types.Key

func NewKeyFromJSON

func NewKeyFromJSON(codeAlgorithm string, sourceJson []byte) (types.Key, *gwerror.Error)

func NewSymmetricKey

func NewSymmetricKey(jwtSigningMethod jwt.SigningMethod, certificat interface{}, key interface{}) types.Key

func ParseTokenErrorChecking

func ParseTokenErrorChecking(tokenString string, key types.Key) error

func ParseTokenToClaims

func ParseTokenToClaims(tokenString string, key types.Key, keyFunc *jwt.Keyfunc) (*model.ClaimsOfToken, error)

func SignedString

func SignedString(claims *jwt.Token, key types.Key) (*string, error)

func SigningString

func SigningString(chain *model.ChainOfToken, claims *jwt.Token) (*string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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