Skip to content

Fix login redirect loop if user has multiple cookies#47913

Merged
bbovenzi merged 2 commits intoapache:mainfrom
astronomer:fix-login-loop
Mar 18, 2025
Merged

Fix login redirect loop if user has multiple cookies#47913
bbovenzi merged 2 commits intoapache:mainfrom
astronomer:fix-login-loop

Conversation

@bbovenzi
Copy link
Contributor

@bbovenzi bbovenzi commented Mar 18, 2025

If the browser had multiple cookies, we were not fetching the auth token correctly and the user got stuck in a infinite redirect loop.

This is because cookies are often split by ; not just ;


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Mar 18, 2025
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice findings!

@bbovenzi bbovenzi merged commit d7c9f58 into apache:main Mar 18, 2025
34 checks passed
@bbovenzi bbovenzi deleted the fix-login-loop branch March 18, 2025 15:35
agupta01 pushed a commit to agupta01/airflow that referenced this pull request Mar 21, 2025
* Fix login redirect loop if user has multiple cookies

* use .trim() instead of .includes()
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
* Fix login redirect loop if user has multiple cookies

* use .trim() instead of .includes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants