-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug the roles function using the local auth emulator #364
Comments
Related to #306 |
I will look at this post-GA. The current workaround is to print a warning if we detect the |
What is the current status of this? I was attempting to enable role management and test locally. I expected my I'm using |
Hi @c0g1t8, cc// @sgollapudi77 |
Is there any update on this? |
I'd like to second this - any progress so far? At the moment trying to debug is not possible for me, as issues only seem to occur in prod, and not on a local dev machine. |
I added a hack locally to node_modules/@azure/static-web-apps-cli/dist/public/auth.html and changed the
it's not perfect (eg you could forward on more details from the form to the roles method (and pull the roles method from the config). |
Can potentially also use a
to replace the login file without manually editing |
Is your feature request related to a problem? Please describe.
Enable local dev for role management 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
The text was updated successfully, but these errors were encountered: