Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct { //Roles which is used for RBAc Roles []string `json:"roles"` }
Authorization contains all the roles of the user
type Claims ¶
type Claims struct { Username string `json:"username"` UserID string `json:"user_id"` Authorization Authorization `json:"authorization"` jwt.StandardClaims }
Claims contains the values for the claims part of the JWT
type DefaultLoginRequest ¶
type LoginResponse ¶
type LogoutRequest ¶
Click to show internal directories.
Click to hide internal directories.