Using a Certificate as authorization in a GET API call

Sander Schmeitz | VANDAAG 20 Reputation points
2023-02-07T11:19:11.1533333+00:00

Hello there!

In Azure Data Factory, I am trying to send a GET request to an API, by using a copy activity (thus trying to receive data). I've made a REST Linked Service where I define the correct Base URL and put the Authentication Type to Anonymous. Furthermore; I uploaded a .pfx certificate into my Key Vault. This Key Vault is also linked to my Azure Data Factory. When I first tried to Preview the data in a copy activity, ADF gave me a 'Forbidden error', telling me I was not authorized.

After this I tried adding an Auth header in the REST linked service, using the Authorization as Name and using the Certificate from my Key Vault as value. This also does not seem to work. When I try to Test the connection with the Auth header, it gives me an error with: Object must implement IConvertible.

Does anyone have a solution to this problem or has experience with certificates and authorization in ADF?

Thanks in advance!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,643 questions
0 comments No comments
{count} votes

Accepted answer
  1. HimanshuSinha-msft 19,381 Reputation points Microsoft Employee
    2023-02-07T22:09:59+00:00

    Hello @Sander Schmeitz | VANDAAG , Thanks for the question and using MS Q&A platform.
    As we understand the ask here is how to use certificate to authenticate a get call , please do let us know if its not accurate.

    I just the checked that the UI and I see that we do have an option for client certificate. I suggest you to please try that let us know how it goes.

    User's image

    Thanks
    Himanshu
    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues. 


0 additional answers

Sort by: Most helpful