Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issuer ¶
type Issuer struct {
// contains filtered or unexported fields
}
Issuer handles JWT issuing
func (*Issuer) GenerateClaims ¶ added in v0.3.4
func (i *Issuer) GenerateClaims(jwtId string, userId string, expirationTime time.Time) *jwt.MapClaims
GenerateClaims generates a new claims object
func (*Issuer) IssueToken ¶
IssueToken issues a new token for the given user with the given roles
type Logger ¶ added in v0.3.4
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) IssuedToken ¶ added in v0.3.4
func (e *Logger) IssuedToken()
IssuedToken logs a message when the server issues a token
Click to show internal directories.
Click to hide internal directories.