Custom SWA roles don't work in Data API builder
itpropro opened this issue · 1 comments
itpropro commented
Custom roles (all except authenticated
and anonymous
) don't work with the Data API builder permission model and always return AUTH_NOT_AUTHORIZED
.
Tested with identity provider azureActiveDirectory
in swa config and authentication provider StaticWebApps
in db config.
Duplicate of Azure/data-api-builder#2074, as I don't know where this should be tracked.
seantleonard commented
Answer provided on other issue. Continuing conversation there.
Hi @itpropro,
In your GraphQL request, make sure to include the HTTP header:
X-MS-API-ROLE
with valuecustom-reader
For more details with examples, see https://learn.microsoft.com/azure/data-api-builder/authorization#user-roles