Skip to content

Fix Airflow JWT getting cleared in KeycloakAuthManager /login_callback route - #71077

Open
stephen-bracken wants to merge 1 commit into
apache:mainfrom
stephen-bracken:fix-keycloak-login
Open

Fix Airflow JWT getting cleared in KeycloakAuthManager /login_callback route#71077
stephen-bracken wants to merge 1 commit into
apache:mainfrom
stephen-bracken:fix-keycloak-login

Conversation

@stephen-bracken

Copy link
Copy Markdown
Contributor

Fix Airflow JWT getting cleared in KeycloakAuthManager /login_callback route

related: #70800

In the /login_callback route the request has no _token property because the /login_callback route is going to set _token in the response. The KeycloakJWTMiddleware was incorrectly raising a 401 status and clearing the _token cookie, preventing logins. Gracefully handle this scenario by returning None, None for the user.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
  • No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant