-
Notifications
You must be signed in to change notification settings - Fork 289
Closed
Labels
authimprovementLet's make this betterLet's make this bettersecurityswa-integrationchanges related to swa integrationchanges related to swa integration
Milestone
Description
When working locally and using the X-MS-CLIENT-PRINCIPAL header to simulate an authenticated call, as long as the JSON provided in the header is a correct JSON, no error is raised, even if there are none of the expected elements, as described here: https://learn.microsoft.com/en-us/azure/static-web-apps/user-information?tabs=javascript
For example. this JSON (passed as base64 encoded string) will be accepted without any warning or error:
{"message": "hello world"}of course, this will not authenticate the request, but there is no way for the developer to know that the request as not been authenticated.
Would be great if we can
- error or warn if we receive an X-MS-CLIENT-PRINCIPAL that doesn't contain any of the needed information
- log what role the request has been assigned to
Metadata
Metadata
Assignees
Labels
authimprovementLet's make this betterLet's make this bettersecurityswa-integrationchanges related to swa integrationchanges related to swa integration
Type
Projects
Status
Done