Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicAuth redirect removes QueryString from originalPath #1546

Open
robmaas opened this issue Sep 17, 2024 · 0 comments
Open

BasicAuth redirect removes QueryString from originalPath #1546

robmaas opened this issue Sep 17, 2024 · 0 comments

Comments

@robmaas
Copy link

robmaas commented Sep 17, 2024

Describe the bug

When configuring a SitePassword Azure Static Apps will redirect any visitor to .auth/basicAuth/login?originalPath=.
After providing the password the app will redirect back to the originalPath.

However if the original URL contains a querystring the app will strip it from the originalPath and redirect to path without querystring.

To Reproduce
Steps to reproduce the behavior:

  1. Configure a Sitepassword
  2. Go to https://yourapp.azurestaticapps.net/test?qs=testqs
  3. The app will redirect to https://yourapp.azurestaticapps.net/.auth/basicAuth/login?originalPath=test (querystring is already stripped)
  4. Enter password
  5. The app will redirect to https://yourapp.azurestaticapps.net/test and the querystring is lost.

Expected behavior
The app preserves the original querystring in the auth-flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant