cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
icee8123
Level: Powered On

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? Smiley Happy 

 

Any help is appreciated.


Thank you in advance.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
icee8123
Level: Powered On

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
icee8123
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 299 members 1,927 guests
Please welcome our newest community members: