package
Version:
v0.0.0-...-bbcb6ed
Opens a new window with list of versions in this module.
Published: Apr 13, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CreateJWKS creates a JWKS from the given private key
Signer is used to sign tokens
Sign will add a signature to the given payload
type Token struct {
Body map[string]interface{}
}
Token represents a JWT
func CreateToken() *Token
CreateToken prepares a new Token
Verifier is used to verify token
NewVerifier creates a verifier from an RSA key.
This can be a public key or private key
Decode will decode the payload without verifying the signature
Verify decodes a token and checks whether the given signature is valid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.