Documentation
¶
Index ¶
- func GenerateChain(accountId *int64, ...) *model.ChainOfToken
- func GenerateChainWithClaims(signinMethod jwt.SigningMethod, accountId int64, ...) (*model.ChainOfToken, *jwt.Token)
- func NewAsymmetricKey(jwtSigningMethod jwt.SigningMethod, certificat interface{}, ...) types.Key
- func NewKeyFromJSON(codeAlgorithm string, sourceJson []byte) (types.Key, *gwerror.Error)
- func NewSymmetricKey(jwtSigningMethod jwt.SigningMethod, certificat interface{}, key interface{}) types.Key
- func ParseTokenErrorChecking(tokenString string, key types.Key) error
- func ParseTokenToClaims(tokenString string, key types.Key, keyFunc *jwt.Keyfunc) (*model.ClaimsOfToken, error)
- func SignedString(claims *jwt.Token, key types.Key) (*string, error)
- func SigningString(chain *model.ChainOfToken, claims *jwt.Token) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateChain ¶
func GenerateChainWithClaims ¶
func NewAsymmetricKey ¶
func NewKeyFromJSON ¶
func NewSymmetricKey ¶
func ParseTokenErrorChecking ¶
func ParseTokenToClaims ¶
func SigningString ¶
func SigningString(chain *model.ChainOfToken, claims *jwt.Token) (*string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.