Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use OAuth 2.0 Authentication in an Azure Logic App?

I'm trying to create a simple logic app with an FTP trigger which then pipes any uploaded file content to a Web API that I have hosted in Azure and secured using the OAuth 2.0 Client Credentials grant flow.

How does one go about configuring the OAuth 2.0 authentication within the logic app?

What I've done so far is added a FTP trigger which feeds into a HTTP Post action to a Web API endpoint expecting the file content. I see that there is an input for the authentication header, however I would still need to get the token from the authorization endpoint before I am able to specify the header value.

Should I be manually adding extra steps to manually retrieve and supply the token value, or is there a simpler method of referencing a secured endpoint?

like image 542
Brett Mealor Avatar asked Oct 26 '25 12:10

Brett Mealor


1 Answers

If you are using Azure AD then you should be able to follow the these instructions

Part 3 has the specific configuration within your Logic App:

Part 3: Populate the Authorization section in the Logic app

In the Authorization section of the HTTP action: {"tenant":"<<tenantId>>", "audience":"<<clientID from Part 2>>", "clientId":"<<clientID from Part 1>>","secret": "<<Password or Key from Part 1>>","type":"ActiveDirectoryOAuth" }

like image 137
antmeehan Avatar answered Oct 28 '25 05:10

antmeehan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!