Versions in this module Expand all Collapse all v0 v0.0.2 Jan 2, 2024 v0.0.1 Dec 19, 2023 Changes in this version + func GetAuthToken(req *http.Request) string + type KeycloakClaims struct + RealmAccess RealmAccess + type RealmAccess struct + Roles []string + type Token struct + RealmAccess RealmAccess + Sub string + Token string + func CreateToken(issuer string, userId string) (token Token, err error) + func CreateTokenWithRoles(issuer string, userId string, roles []string) (token Token, err error) + func GetParsedToken(req *http.Request) (token Token, err error) + func (this *Token) GetUserId() string + func (this *Token) IsAdmin() bool + func (this *Token) Jwt() string + func (this *Token) String() string + func (this *Token) Valid() error