Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ed25519Issuer ¶
type Ed25519Issuer struct {
// contains filtered or unexported fields
}
Ed25519Issuer handles JWT tokens issuing with ED25519 private key
func NewEd25519Issuer ¶
func NewEd25519Issuer(privateKey []byte) (*Ed25519Issuer, error)
NewEd25519Issuer creates a new issuer by parsing the given path as an ED25519 private key
func (*Ed25519Issuer) IssueToken ¶
func (i *Ed25519Issuer) IssueToken(claims *jwt.MapClaims) (string, error)
IssueToken issues a new token for the given user with the given roles
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the JWT issuer logger
func NewLogger ¶
func NewLogger(header string, modeLogger gologgermode.Logger) (*Logger, error)
NewLogger creates a new JWT issuer logger
func (*Logger) IssuedToken ¶
func (l *Logger) IssuedToken()
IssuedToken logs a message when the server issues a token
Click to show internal directories.
Click to hide internal directories.