Versions in this module Expand all Collapse all v12 v12.0.1 Feb 8, 2023 Changes in this version + const KeyRealm + func Contains(a []string, x string) bool + type APICustomError struct + Code int + Message string + Result string + func (apiError APICustomError) Error() string + type Authenticate struct + ClientID string + ClientSecret string + Password *string + Realm string + Scope string + UserName *string + type AuthenticationHandler interface + AuthenticateClient func(Authenticate) (*JWT, error) + AuthenticateUser func(Authenticate) (*JWT, error) + RefreshToken func(Refresh) (*JWT, error) + func NewAuthenticationHandler(ctx context.Context, gocloakClient *gocloak.GoCloak, realm *string) AuthenticationHandler + type AuthenticationMiddleWare interface + CheckScope func(next echo.HandlerFunc) echo.HandlerFunc + CheckToken func(next echo.HandlerFunc) echo.HandlerFunc + CheckTokenCustomHeader func(next echo.HandlerFunc) echo.HandlerFunc + DecodeAndValidateToken func(next echo.HandlerFunc) echo.HandlerFunc + Enforcer func(requestData *EnforcerConfig) echo.MiddlewareFunc + Protect func(next echo.HandlerFunc) echo.HandlerFunc + func NewDirectGrantMiddleware(ctx context.Context, gocloak *gocloak.GoCloak, ...) AuthenticationMiddleWare + type Authorization struct + Permissions []Permission + type Claims struct + Acr string + Address jwx.Address + AllowedOrigins []string + AuthTime int + Authorization Authorization + Azp string + ClientHost string + ClientID string + ClientIP string + Email string + EmailVerified bool + FamilyName string + GivenName string + Name string + PreferredUsername string + RealmAccess jwx.RealmAccess + ResourceAccess jwx.ResourceAccess + Scope string + SessionState string + Typ string + func (c *Claims) HasPermission(resource string, scope string) bool + type EnforcerConfig struct + Audience string + Permissions []EnforcerConfigPermission + Postfix string + Prefix string + ResponseMode *RequestModeEnum + type EnforcerConfigPermission struct + Resource string + Scope string + type JWT struct + AccessToken string + ExpiresIn int + NotBeforePolicy int + RefreshExpiresIn int + RefreshToken string + Scope string + SessionState string + TokenType string + type Permission struct + Rsid string + Rsname string + Scopes []string + func (pc Permission) Contains(id string, scope string) bool + type PermissionClaim struct + Id string + type Refresh struct + ClientID string + ClientSecret string + Realm string + RefreshToken string + type RequestModeEnum string + const DecisionRequestMode + const PermissionRequestMode Other modules containing this package bitbucket.org/iotblueSaaS/gocloak-echo/v7 bitbucket.org/iotblueSaaS/gocloak-echo/v8 bitbucket.org/iotblueSaaS/gocloak-echo/v9