cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Http Action - Connect to Web API with Active Directory OAuth

Hello everyone,

 

I'm trying to call a custom web api hosted in azure that is also implementing an Azure AD OAuth authentication, so in the Http Action in the flow I configured the Authentication part of the action using Active Directory OAuth, but for some reason, I keep getting this error saying that the application name cannot be found in the tenant.

screen1.png

 

I'm a bit confused now with the tenant setup in the flow, is it the tenant guid id or just like the domain name? and in the audience field is it  the application name? I check my app registration in azure and I'm sure im using the tenant ids etc..

screen2.png

 

Has anyone tried this setup before? 🙂 

 

Any help is appreciated.


Thank you in advance.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Http Action - Connect to Web API with Active Directory OAuth

If anyone is interested I figured it out after some trial and error in my part. Smiley Happy

 

What worked for me is the Audience and Client ID are the same value.  You can check this in your Azure Portal Application registration, this is the Application ID in the properties.

The Tenant field value is the domain, for example for us its: mytenant.onmicrosoft.com 

 

The HTTP action was able to call the web api and it generated authorization headers. 

 

View solution in original post

1 REPLY 1
Highlighted
Frequent Visitor

Re: Http Action - Connect to Web API with Active Directory OAuth

If anyone is interested I figured it out after some trial and error in my part. Smiley Happy

 

What worked for me is the Audience and Client ID are the same value.  You can check this in your Azure Portal Application registration, this is the Application ID in the properties.

The Tenant field value is the domain, for example for us its: mytenant.onmicrosoft.com 

 

The HTTP action was able to call the web api and it generated authorization headers. 

 

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,128)