Registry / workflow / apache-airflow-providers-keycloak

apache-airflow-providers-keycloak

JSON →
library0.7.3pypypiunverified

An Apache Airflow provider package that integrates with Keycloak, enabling communication with Keycloak authentication servers. The current version is 0.7.1, supporting Airflow 2.7+ and Python >=3.10. Released on an as-needed basis.

pip install apache-airflow-providers-keycloak
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-keycloak
workflowpythonv0.7.3
Install
22.4s avg
Import
Disk
264MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.7.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 25.6s
py 3.11
✓ —
✓ 24.6s
py 3.12
✓ —
✓ 19.7s
py 3.13
✓ —
✓ 19.7s
py 3.9
✕ build_error
✕ build_error
264MB installed
● package 264MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KeycloakHook
from airflow.providers.keycloak.hooks.keycloak import KeycloakHook
from airflow.providers.keycloak.hooks.keycloak import KeycloakHook

Shows how to import and instantiate the KeycloakHook after setting up a connection.

from airflow import DAG from airflow.providers.keycloak.hooks.keycloak import KeycloakHook from datetime import datetime default_args = { 'owner': 'airflow', 'start_date': datetime(2023, 1, 1), } with DAG('keycloak_test', default_args=default_args, schedule_interval=None) as dag: pass # Use hook in tasks hook = KeycloakHook() # Hook is configured via Airflow connection 'keycloak_default' print(hook.get_conn())
airflow --version
Debug
Known issues
gotchaThe hook requires a pre-configured Airflow connection with conn_type='keycloak'. Without it, you'll get a 'Connection not found' error.
fix
Create a connection in Airflow UI or via environment variable AIRFLOW_CONN_KEYCLOAK_DEFAULT with JSON config.
affects: all
deprecatedThe provider only supports Airflow 2.7+ and Python 3.10+.
fix
Ensure your Airflow and Python versions are compatible.
affects: 0.7.1
breakingIn older versions (pre-provider split), imports used 'airflow.hooks.keycloak'. This no longer works.
fix
Use the new import path: from airflow.providers.keycloak.hooks.keycloak import KeycloakHook
affects: >=0.7.0
Upgrade
Version history
0.7.3latest on PyPI · released Jun 7, 2026
Audit
Dependencies
apache-airflowrequiredCore Airflow dependency
Agent activity
65 hits · last 30 days
node
56
OpenAI (training)
3
Resources
apache-airflow-providers-keycloak — pip install apache-airflow-providers-keycloak · libregistry