Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRequiredClaims ¶
HasRequiredClaims checks that there is at least one group, and at least one scope, returning true if there is at least one group and one scope
func SetSubject ¶
SetSubject sets the subject of the token
Types ¶
type Token ¶
type Token struct {
// Groups represent the group names for the sets of pools
// which a user can access
Groups []string `json:"groups"`
// Scopes controlling access to relay;
// either ["login"],["user"], or ["login","admin"]
Scopes []string `json:"scopes"`
// Pools is a list of pool_id for the pools in the groups
Pools []string `json:"pools"`
jwt.RegisteredClaims
}
Token represents a token used for login or booking
type TokenInBody ¶
type TokenInBody struct {
Token string `json:"token"`
}
TokenInBody represents a token marshalled into a string
Click to show internal directories.
Click to hide internal directories.