Reputation: 29736
From Azure Data Factory, I'm trying to connect to a REST service that requires an access token (OAuth2). Tried in Postman with the client credentials flow (client_id/client_secret) and it works fine:
I configured the linked service like that as It supposed to support the OAuth2 client credentials flow:
But when testing the connection, it fails with this message:
The request body must contain the following parameter: 'client_secret'.
I don't really understand why the client_secret is not added in the request body as it is a client credentials flow.
Not sure if I'm missing some configuration ? For the moment, I'm using Web Activity as a workaround.
Upvotes: 1
Views: 3478
Reputation: 3240
This error may occurred because Allow public client flows
is disabled for the application registered in Azure AD.
Enabling it may fixed the issue.
Refer - https://learn.microsoft.com/en-us/azure/data-factory/parameterize-linked-services?tabs=data-factory
Upvotes: 0