airflow.providers.keycloak.auth_manager.middleware¶
Attributes¶
Classes¶
Attach the Keycloak JWT tokens to the user. |
Functions¶
Module Contents¶
- class airflow.providers.keycloak.auth_manager.middleware.KeycloakJWTMiddleware(app, dispatch=None)[source]¶
Bases:
starlette.middleware.base.BaseHTTPMiddlewareAttach the Keycloak JWT tokens to the user.
Gets the Keycloak JWT tokens from the request cookies and attaches them to the user. If the token is expired, attempt to refresh it using the refresh token.