Unable to authorize with custome roles

kanna 106 Reputation points
2022-01-31T06:30:15.827+00:00

I'm following Tutorial https://learn.microsoft.com/en-us/azure/static-web-apps/assign-roles-microsoft-graph "Tutorial: Assign custom roles with a function and Microsoft Graph"

Followed steps exactly given there, went to through the whole exercise twice.

When I click login I'm getting following error

   GET https://victorious-island-091e86f10.1.azurestaticapps.net/.auth/login/aad 404 (Not Found)  

What I want to achieve is to restrict access to static webpage only to few users/groups.
I double checked all the configuration values but unable to figure out what is going on.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,848 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2022-02-02T16:54:20.837+00:00

    Apologize for facing issue on this. After reproducing this it was found that the doc was broken, which is now been updated, Thanks for bringing it to our attention.

    Could you please ensure the app settings like AAD_CLIENT_ID are named the same as what is referenced in your app’s staticwebapp.config.json.

    Please check: https://learn.microsoft.com/en-us/azure/static-web-apps/assign-roles-microsoft-graph#configure-active-directory-authentication

    Hope this helps.

    Let us know, if further query or issue remains.

    0 comments No comments

0 additional answers

Sort by: Most helpful