Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface {
Generate(indent string, expire time.Duration) (token string, err error)
}
this interface provides the scheme to generate JWT access token
type JWTKeyPair ¶
type JWTKeyPair struct {
// contains filtered or unexported fields
}
This implements the RSA keypair needed to sign JWT
func NewJWTManager ¶
func NewJWTManager(privateKeyFile, publicKeyFile string) (m *JWTKeyPair, err error)
this functions generates a new Keypair for JWT signing
Click to show internal directories.
Click to hide internal directories.