Versions in this module Expand all Collapse all v1 v1.5.1 May 14, 2026 v1.5.0 May 13, 2026 Changes in this version + const ClientScopes + const GrantTypeAuthorizationCode + const LoginResponseType + var DefaultMockResponses = GetDefaultMockResponses() + func Auth(dbSession *cdb.Session, tc temporalClient.Client, ...) echo.MiddlewareFunc + func AuthProcessor(c echo.Context, joCfg *config.JWTOriginConfig) *util.APIError + func CreateMockKeycloakServer(config MockKeycloakServerConfig) *httptest.Server + type KeycloakAuthService struct + func NewKeycloakAuthService(keycloakConfig *config.KeycloakConfig) *KeycloakAuthService + func NewKeycloakAuthServiceWithClient(keycloakConfig *config.KeycloakConfig, client *gocloak.GoCloak) *KeycloakAuthService + func (k *KeycloakAuthService) ClientCredentialsAuth(ctx context.Context, clientID, clientSecret string) (*model.APITokenResponse, error) + func (k *KeycloakAuthService) ExchangeCodeForTokens(ctx context.Context, code string, redirectURI string, codeVerifier string) (*model.APITokenResponse, error) + func (k *KeycloakAuthService) GetUserInfo(ctx context.Context, accessToken string) (*gocloak.UserInfo, error) + func (k *KeycloakAuthService) InitiateAuthFlow(ctx context.Context, email, redirectURI string) (*model.APILoginResponse, error) + func (k *KeycloakAuthService) IsServiceAccountEnabled() bool + func (k *KeycloakAuthService) Logout(ctx context.Context, refreshToken string) error + func (k *KeycloakAuthService) RefreshAccessToken(ctx context.Context, refreshToken string) (*model.APITokenResponse, error) + type MockKeycloakServerConfig struct + Responses TestMockResponses + ValidCodes map[string]bool + ValidCredentials map[string]string + ValidTokens map[string]bool + func DefaultMockServerConfig() MockKeycloakServerConfig + type TestMockResponses struct + AdminLogin string + IDPs string + JWKS string + Token string + UserInfo string + func GetDefaultMockResponses() TestMockResponses