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

  1. Create an OIDC client in the realm with Client authentication and Standard flow on. Enable Service accounts roles for Metabase’s Check connection test.
  2. Register https://<metabase>/auth/sso/<key>/callback as Valid redirect URI and the Metabase URL as Web origin.
  3. 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.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Metabase with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.