Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthToken ¶
Types ¶
type KeycloakClaims ¶
type KeycloakClaims struct { RealmAccess RealmAccess `json:"realm_access"` jwt.StandardClaims }
type RealmAccess ¶
type RealmAccess struct {
Roles []string `json:"roles"`
}
type Token ¶
type Token struct { Token string `json:"-"` Sub string `json:"sub,omitempty"` RealmAccess RealmAccess `json:"realm_access,omitempty"` }
func CreateTokenWithRoles ¶
Click to show internal directories.
Click to hide internal directories.