Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

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

Closed sandeep859 closed 3 months ago

sandeep859 commented 3 months ago

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

Additional context

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

ygrik commented 3 months ago

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

sandeep859 commented 3 months ago

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.