cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
icee8123
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
icee8123
Frequent Visitor

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
Frequent Visitor

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (1,832)