Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTokenUsername ¶
func GetTokenUsername(c *fiber.Ctx) string
Types ¶
type KeycloakAdminRealmUser ¶
type KeycloakConfig ¶
type KeycloakConfig struct { Keycloak *gocloak.GoCloak Realm string ClientID string ClientSecret string AdminRealmUser *KeycloakAdminRealmUser Enabled bool }
func (KeycloakConfig) CreateUser ¶
func (kc KeycloakConfig) CreateUser(c *fiber.Ctx, simpleUser KeycloakSimpleUser) error
func (KeycloakConfig) Secure ¶
func (kc KeycloakConfig) Secure(roles ...string) fiber.Handler
type KeycloakSimpleUser ¶
type TokenClaims ¶
type TokenClaims struct { Permission TokenPermission `json:"permission"` Audience string `json:"aud"` jwt.RegisteredClaims }
type TokenConfig ¶
func (TokenConfig) Secure ¶
func (t TokenConfig) Secure(roles ...string) fiber.Handler
Secure method with role validation. If no role is specified no role validation is executed
type TokenPermission ¶
Click to show internal directories.
Click to hide internal directories.