airflow.providers.keycloak.auth_manager.middleware¶
Exceptions¶
In case it is using a version of Airflow without |
Classes¶
Attach the Keycloak JWT tokens to the user. |
Functions¶
Module Contents¶
- exception airflow.providers.keycloak.auth_manager.middleware.AuthManagerRefreshTokenExpiredException[source]¶
Bases:
ExceptionIn case it is using a version of Airflow without
AuthManagerRefreshTokenExpiredException.
- 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.