Skip to content

Misleading authentication error #528

@MarkMpn

Description

@MarkMpn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions