Closed itpropro closed 6 months ago
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
Custom roles (all except
authenticated
andanonymous
) don't work with the Data API builder permission model and always returnAUTH_NOT_AUTHORIZED
. Tested with identity providerazureActiveDirectory
in swa config and authentication providerStaticWebApps
in db config.Duplicate of https://github.com/Azure/data-api-builder/issues/2074, as I don't know where this should be tracked.