Samin061 opened a new pull request, #69801:
URL: https://github.com/apache/airflow/pull/69801

   The keycloak login and login_callback routes built the OAuth redirect_uri 
with request.url_for, which Starlette derives from the request Host; with the 
API server started under --proxy-headers it trusts every X-Forwarded-Host, so a 
request header can steer the callback URL that Keycloak sends the authorization 
code to. This derives the redirect_uri from the configured [api] base_url 
instead, mirroring the logout and post-login redirects already in this file, 
and only falls back to the request URL when base_url is unset.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [ ] Yes (please specify the tool below)


-- 
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]

Reply via email to