Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
jwt.Claims
Groups []string `json:"groups,omitempty"`
Email string `json:"email,omitempty"`
EmailVerified bool `json:"email_verified,omitempty"`
ServiceAccountName string `json:"service_account_name,omitempty"`
RawClaim map[string]interface{} `json:"-"`
}
func (*Claims) GetCustomGroup ¶
GetCustomGroup is responsible for extracting groups based on the provided custom claim key
func (*Claims) GetUserInfoGroups ¶
func (*Claims) UnmarshalJSON ¶
UnmarshalJSON is a custom Unmarshal that overwrites json.Unmarshal to mash every claim into a custom map
Click to show internal directories.
Click to hide internal directories.