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

URL getting redirected to /signin?returnUrl=%2F #2432

Closed
sandeep859 opened this issue Mar 12, 2024 · 2 comments
Closed

URL getting redirected to /signin?returnUrl=%2F #2432

sandeep859 opened this issue Mar 12, 2024 · 2 comments
Labels
Response needed Issues, which require a response from the author.

Comments

@sandeep859
Copy link

URL getting redirected to /signin?returnUrl=%2F

Bug description

We are using Managed Developer portal with Custom Developer portal URL. We did design changes as well. When we try to access the developer portal on the browser, it gets redirected to /signin?returnUrl=%2F.

Reproduction steps

  1. Go to browser
  2. Paste the URL : https://{customDeveloperPortl} and click enter
  3. The URL gets redirected as : https://{customUL}/signin?returnUrl=%2F

When we run the same URL as the curl command the terminal, the response looks like this :

< HTTP/2 302
< content-type: text/plain; charset=utf-8
< content-length: 43
< location: /signin?returnUrl=%2F
< x-response-time: 1.603ms
< x-content-type-options: nosniff
< x-frame-options: sameorigin
< x-xss-protection: 1; mode=block
< date: Tue, 12 Mar 2024 03:40:01 GMT
< strict-transport-security: max-age=31536000 ; includeSubDomains
<
{ [5 bytes data]
100    43  100    43    0     0    102      0 --:--:-- --:--:-- --:--:--   102Found. Redirecting to /signin?returnUrl=%2F
* Connection #0 to host customDomain.com left intact

Expected behavior

The URL should not redirect and show the home page at : https://{customDeveloperPortl}

Is your portal managed or self-hosted?

Managed

API Management service name

Environment

  • Operating system: [Windows]
  • Browser: Google Chrome, Firefox

Additional context

Add any other context about the problem here, including screenshots.

@ygrik
Copy link
Collaborator

ygrik commented Mar 14, 2024

Hello @sandeep859

Please check the identity settings for your service
image

If this setting is enabled then all anonymous users will be redirected to sign-in page

@ygrik ygrik added the Response needed Issues, which require a response from the author. label Mar 14, 2024
@sandeep859
Copy link
Author

Hello @sandeep859

Please check the identity settings for your service image

If this setting is enabled then all anonymous users will be redirected to sign-in page

Yes, We had redirect anonymous users settings on. We turned them off and it fixed the problem. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Response needed Issues, which require a response from the author.
Projects
None yet
Development

No branches or pull requests

2 participants