Skip to Content
IntegrationsKeycloak

Keycloak

KalamDB no longer has Keycloak-specific auth configuration. Keycloak now fits the same single-provider OIDC model as Dex, Okta, Auth0, Entra ID, Google, and other standards-compliant issuers.

Use the generic OIDC docs and set the issuer to your Keycloak realm URL.

Example server.toml

TOML
[auth]jwt_trusted_issuers = "kalamdb,https://keycloak.example.com/realms/myrealm" [auth.oidc]enabled = truedisplay_name = "Keycloak"issuer = "https://keycloak.example.com/realms/myrealm"client_id = "kalamdb"scopes = ["openid", "email", "profile"]auto_provision = truedefault_role = "user"

The issuer URL must exactly match the iss claim in Keycloak tokens.

What Changed

Current external identities use the OIDC sub claim directly as the KalamDB user_id.

If you need explicit persisted users or elevated roles, create them with issuer and subject:

SQL
CREATE USER 'provider-subject'  WITH OIDC '{"issuer":"https://keycloak.example.com/realms/myrealm","subject":"provider-subject"}'  ROLE dba  EMAIL 'alice@example.com';
Last updated on