Azure / api-management-developer-portal

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

Protected page with USer group shows page doesnt exists error #2649

Open Aiswaryabalu101090 opened 2 months ago

Aiswaryabalu101090 commented 2 months ago

Bug description

We have Dev portal hosted on top of Internal API management instance, we wanted to protect all the pages from anonymous access. So, in page settings for all the pages, under testing its kept to be accessible by developer's user group.

Now when I load the home page it says, "Page you are looking for doesn't exists".

image

Reproduction steps

  1. Go to pages in admin
  2. click on settings and make home page accessible only to certain group
  3. Publish the portal
  4. Try to navigate to home page in normal mode

Expected behavior

Page should be throwing User not authorized to view this page

Is self-hosted portal?

Yes

[!WARNING] "Managed developer portal issues" will be closed automatically. See above for more details.

Release tag or commit SHA (if using self-hosted version)

[e.g., release 2.0.0, commit c45da9778b70d369aba60fa2e63c191efe2b548f]

API Management service name

azusam1lwv787

Environment

UAT

ygrik commented 5 days ago

Hello @Aiswaryabalu101090

Did you try to use existing functionality to redirect anonymous users to signin page? You can set it in Azure portal -> Developer portal -> Identities -> Settings image