Search code examples
oauth-2.0oauthazure-logic-apps

invoking HTTP oauth 2.0 from an Azure logic app


I'm trying to connect to an Azure web app, and once I have checked that network is correctly configured (I'm able to connect to unsecured resources) I'm stuck with the "Active Directory Oauth" option in the HTTP connector (API web app inside Azure).

enter image description here

The response is an internal error:

enter image description here

Are the parameters correctly filled?

And also I have been able to connect with endpoint through Postman Authentication Oauth 2.0. ID Token ins unchecked in App Registration.

enter image description here


Solution

  • Have created logic app as shown below, enter image description here

    Get Bearer Token is a http action. Using this request getting bearer token. enter image description here Authentication Type: Basic

    User name : Client Id

    Password : Client Secret

    Added one more Http action with name, Get Data action is using access token from previous step to call api as shown below, enter image description here

    Able to call api using bearer token and getting data. enter image description here