Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingPrivateKey = errors.New("cannot issue token: private key is missing") ErrInvalidClaims = errors.New("invalid token claims") )
Functions ¶
func LoadKeysFromFiles ¶ added in v0.2.0
Types ¶
type Claims ¶
type Claims struct {
jwt.RegisteredClaims
}
Claims defines the standard payload for the entire platform.
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
Manager handles the creation and validation of JWTs.
func NewJWTManager ¶
func NewJWTManager(priv *rsa.PrivateKey, pub *rsa.PublicKey, issuer string) *JWTManager
NewJWTManager initializes the JWT logic.
Click to show internal directories.
Click to hide internal directories.