airflow.providers.keycloak.auth_manager.middleware

Attributes

LOGOUT_PATH

Classes

KeycloakJWTMiddleware

Attach the Keycloak JWT tokens to the user.

Functions

get_cookie_path()

Module Contents

airflow.providers.keycloak.auth_manager.middleware.LOGOUT_PATH = '/api/v2/auth/logout'[source]
class airflow.providers.keycloak.auth_manager.middleware.KeycloakJWTMiddleware(app, dispatch=None)[source]

Bases: starlette.middleware.base.BaseHTTPMiddleware

Attach 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.

async dispatch(request, call_next)[source]

Was this entry helpful?