PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, October 17, 2022

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

 October 17, 2022     azure, azure-logic-apps, oauth     No comments   

Issue

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?


Solution

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" }



Answered By - antmeehan
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing