Azure / Azure/static-web-apps-cli

Debug the roles function using the local auth emulator

Open
#364 9 comments 8 reactions 0 assignees View on GitHub
complexity: days priority: high (P0) scope: auth status: release-blocker type: enhancement type: RFC
Dominant language
TypeScript
Stars
668
Forks
156
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Enable local dev for [role management](https://docs.microsoft.com/azure/static-web-apps/authentication-authorization?tabs=function) through serverless functions

**Describe the solution you'd like**
Test programmatically assigned roles in local environment

**Describe alternatives you've considered**
Call the auth function locally with something like Postman to ensure it responds with the right roles given an input.
Use the local emulator to set custom roles at login to test how your app works with different roles.

**Additional context**
[Tutorial: Assign custom roles with a function and Microsoft Graph](https://docs.microsoft.com/azure/static-web-apps/assign-roles-microsoft-graph)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.