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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
