Unable to authorize with custome roles

kanna 101 Reputation points

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 Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,571 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 11,456 Reputation points Microsoft Employee

    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 additional answers

Sort by: Most helpful