PowerPlatform-DataverseServiceClient
PowerPlatform-DataverseServiceClient copied to clipboard
Misleading authentication error
I've recently hit an issue when using an external token management authentication flow. After setting up the ServiceClient with the access token I get the error "The HTTP request was forbidden with client authentication scheme 'Anonymous'"
When I have investigated this and running Fiddler to validate what requests are actually being sent to the server, I can see the server actually responded with the more helpful error message:
{"error":{"code":"0x80095ffc","message":"Access to Dataverse API is restricted for this application Id : '<guid>'. Please contact your administrator for more information."}}
Is it possible for the client to expose this error message instead?