# Functions
No description provided by the author
No description provided by the author
GetUserContext extract UserContext from gin.Context.
NewGinAuthMiddleware creates a new Gin middleware to authorize each request via Authorization header in format "BEARER JWT_TOKEN" where JWT_TOKEN is the keycloak auth token.
NewKeycloakAuthorizer creates a new authorizer that checks if issuer is correct keycloak instance and realm and validates JWT signature with public cert from keycloak.
SetUserContext adds provided UserContext to gin.Context.
# Structs
KeycloakAuthorizer is used to validate if JWT has a correct signature and is valid and returns keycloak claims.
KeycloakRealmInfo provides keycloak realm and server information.
UserContext contains parsed claims from a keycloak JWT token.