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

   closes: #77208
   
   The `AwsAuthManager` dropped the `next` URL query parameter passed to 
`/auth/login`, so after signing in via SAML, users always landed on the home 
page instead of the Dag, task, or log page they had opened.
   
   This follows the same pattern recently merged for `KeycloakAuthManager` 
(#76362), `FabAuthManager` (#73134), and `SimpleAuthManager` (#67483):
   - Honor `next_url` in `AwsAuthManager.get_url_login()`.
   - Keep a validated safe `next` URL in a short-lived HTTP-only cookie 
(`_awsam_login_next_url`) during the SAML round trip.
   - Redirect to the stored `next_url` in `login_callback` (falling back to 
`[api] base_url`), and clear the cookie.
   - Cover all new behavior with unit tests.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (Antigravity)
   
   Generated-by: Antigravity following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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