For a customer, I need to get data from a Web-API using Data Factory.
The cusromers partner has shared:
1) Certificate for mutual TLS
2) Client-ID and Client-Secret to retrieve OAUTH-token
I want to use the 'Copy-Activity' to get the data, but I have not been able to get this to work!
To prove I can do it with Azure Data Factory, I have implemented both:
** Success: Using a Web-Activity to retieve Token and Web-Activity to retieve api-data**
** Failed: Using a Web-Activity to retrieve Token and Copy-Activity to retieve api-data**
First I will show how I set up the succesfull pipeline (WHICH I DO NOT WANT TO USE!).
As shown here: both activities work correctly

The first activity gets the Bearer Token.
The second activity uses the Bearer Token
The second activity also uses the Certificate supplied by the Customers' Partner:
]3
Please notice that both the Token and Certificate are filled in.
Finally, I get the Json data from the API.

Great! Only, I do not want to use this, because I want to directly load into SQL Server and not pre-stage in a storage account or something.
Next I will show method 2, which I cant get to work!!
As shown, the first activity gets the Token, but the second activity (Copy) fails:

To enter the certificate, I need to use a HTTP Linked Service. So I set that up:

Notice that the test states: 'Connection Successful'
Next I set up the Dataset:

And finally the Copy-Activity:

And when I run the pipeline, the response is a HTTP 403.
Please note that I have an other customer, which does not use a certificate, where this pipeline does work!
This leads me to believe that this combination: 1) HTTP Linked Service 2) Certificate 3) Additional Authorization Header does not work.
It looks to me, that in the background, the request does not use the additional header somehow.
But,... I can not prove this. Even went so far to try and capture/decipher the packages using WireShark, but that out side of my skill-set.
My theory is, that the header is being omitted somehow, due to the option 'certificate' in the HTTP Linked Service.
I've been struggling with this for a week now. Think I tried everything within my reach.
Is it possible for a MS Support engineer to reach out to me and show me what I am doing wrong? Or confirm that Azure Data Factory does not support this?
Thank you.
BR,
David