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
- 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.
- Set AUTH_TYPE=AUTH_OAUTH and OAUTH_PROVIDERS in webserver_config.py with the realm discovery metadata and client credentials.
- 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.
