Search code examples
restoauth-2.0azure-data-factory

Error getting authentication to Azure data factory


I need to hit the data factory pipeline with the REST call ... So, I

  1. Registered application in the Azure Active Directory.
  2. Obtained Client_ID and client_Secret

Then I try to use Postman to get the authentication token and get an error, which I do not understand. Please, help. How can I get authentication token to my ADF using Postman ?

enter image description here


Solution

  • In body section, instead of raw, use - x-www-form-urlencoded as below and it should help resolve the issue.

    enter image description here

    Ideally, when you select x-www-form-urlencoded radio button in the Body section, it automatically sets the Content-Type=application/x-www-form-urlencoded under the Headers tab as shown below.

    enter image description here