Forum Discussion

JasonYeung's avatar
JasonYeung
Brass Contributor
Apr 14, 2023

HTTP request was forbidden with client authentication when connecting to dataverse

Hi,

 

I'm trying to setup a linked Service that connects to the dataverse. This dataverse was created from the Microsoft Developer Program. As I need multi factor authentication to log in, I tried using authentication type Service Principal.

 

When I tested the connection, I get the following error:

The HTTP request was forbidden with client authentication scheme 'Anonymous'. => The remote server returned an error: (403) Forbidden.Unable to Login to Dynamics CRM

 

Below is what I used for the settings (data has been masked):

 

In the Azure AD registration, I have assigned the following API permissions:

 

I have created a certificate & secret for this application and used the secret value as the "service principal key" (I used the Application (client) ID for the "service principal ID"):

 

I tried the secret ID as well, but I always get the same error. I was wondering if there is another section I need to look to fix the problem? Would it be because the dataverse is a developer version?

 

Jason

 

 

    • JasonYeung's avatar
      JasonYeung
      Brass Contributor

      lakulos ,

      Thanks for your query. Sorry, I don't quite remember whether I was able to resolve this problem. This was done a while ago and I may have either tried something else or cancelled the project. I couldn't find the original project to check.

      Jason

       

Resources