Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
Name string
Email string
Username string
Roles []string
Scopes []string
IsAuthenticated bool
IsAdmin bool
OAuth2Token *oauth2.Token
JWTToken *jwt.Token
}
func UserFromJWTToken ¶
UserFromJWTToken builds a user model from the claims of a JWT token clientID is used to find the client from the resource_access claim where the roles are found
func (User) HasRolesAnd ¶
func (User) HasRolesOr ¶
Click to show internal directories.
Click to hide internal directories.