Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
597 stars 117 forks source link

The custom role accessibility is not working as expected. #649

Open ABL6COB opened 1 year ago

ABL6COB commented 1 year ago

Using swa cli version 1.0.6

Describe the bug The custom role accessibility is not working as expected. I run swa cli from my local machine and publish to a static webabb. I have login to azure using Service principle and The command I use is, swa deploy --verbose silly --app-location [appLocation] --deployment-token [deploymentToken] --env [envName] --api-location [apilocation] --swa-config-location [configFileLocation]

The custom role access restriction is not working. The restricted page is accessible to all.

Expected behavior The restricted page is not accessible to all except to the respective members of active directory group.

adrianhall commented 3 months ago

There is not enough information to diagnose the problem here.

What does your staticwebapp.config.json look like? How is your Entra ID enterprise app set up? How is your role function set up (if you have one)? Do you have a repo we can look at?