You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "stephen-bracken (via GitHub)" <gi...@apache.org> on 2026/08/04 09:54:33 UTC

[PR] Fix Airflow JWT getting cleared in KeycloakAuthManager /login_callback route [airflow]

stephen-bracken opened a new pull request, #71077:
URL: https://github.com/apache/airflow/pull/71077

   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)
   - [X] No
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix Airflow JWT getting cleared in KeycloakAuthManager /login_callback route [airflow]

Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck merged PR #71077:
URL: https://github.com/apache/airflow/pull/71077


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org