Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Custom ¶
type Custom struct {
// AuthorizedParty tells which client was used to create token.
AuthorizerParty string `json:"azp,omitempty"`
User string `json:"preferred_username,omitempty"`
Scope string `json:"scope,omitempty"`
RealmAccess Roles `json:"realm_access,omitempty"`
ResourceAccess map[string]Roles `json:"resource_access,omitempty"`
// Roles usable for custom application.
Roles []string `json:"roles,omitempty"`
ScopeSet map[string]struct{} `json:"-"`
RoleSet map[string]struct{} `json:"-"`
// Map claims
Map map[string]interface{} `json:"-"`
jwt.RegisteredClaims
}
Custom claims based on jwt.RegisteredClaims with additional Roles and Scope unmarshal.
func (*Custom) UnmarshalJSON ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.