Apache Airflow SSO with Keycloak (OIDC)

Use the FAB auth manager’s Keycloak example for Airflow UI login and explicit team-to-role mapping.

Last updated

On this page (5)

Apache Airflow · Keycloak · OIDC

Before you start

  • Airflow using a compatible installed Flask AppBuilder provider and FAB auth manager.
  • Keycloak realm and OIDC client.

Configure sign-in

  1. Create an OIDC client and register the Airflow callback for the FAB keycloak provider; add the roles or team claims required by the official example.
  2. Set AUTH_TYPE=AUTH_OAUTH and OAUTH_PROVIDERS in webserver_config.py with the realm discovery metadata and client credentials.
  3. Use the documented custom security manager to normalize Keycloak claims to role keys; define AUTH_ROLES_MAPPING and choose whether roles sync at login.

Verify the result

  • Verify the FAB login flow on the installed Airflow version.
  • Compare DAG access for users in different mapped teams and verify the fallback registration role is not privileged.

Official documentation

Have Pilae connect your identity provider

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