Metabase SSO with Keycloak (OIDC)
Use Metabase’s OIDC provider configuration with a confidential Keycloak client.
Last updated
On this page (5)
Metabase · Keycloak · OIDC
Before you start
- Metabase Pro or Enterprise, Cloud or self-hosted.
- Set MB_ENCRYPTION_SECRET_KEY on self-hosted Metabase before configuration.
- Keycloak realm admin and test user with verified email, first name and last name.
Configure sign-in
- Create an OIDC client in the realm with Client authentication and Standard flow on. Enable Service accounts roles for Metabase’s Check connection test.
- Register https://<metabase>/auth/sso/<key>/callback as Valid redirect URI and the Metabase URL as Web origin.
- In Admin settings > Authentication > OIDC enter the provider key, login prompt, realm issuer https://<keycloak>/realms/<realm>, client ID and secret. Save and enable the provider.
Verify the result
- Run Check connection, then test browser sign-in separately.
- Verify the Keycloak email, given_name and family_name claims resolve to the intended account.
