web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Http Action - Connect ...
Power Automate
Answered

Http Action - Connect to Web API with Active Directory OAuth

(0) ShareShare
ReportReport
Posted on by 29

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.

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    icee8123 Profile Picture
    29 on at

    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. 

     

  • soilleir Profile Picture
    18 on at

    Hi @icee8123    Thanks for the info above. hoping you might be able to help me.  I am new to this type of API authentication method and struggling to get it to work.  When i run my flow to connect to the API via Azure AD the response is always the vendors login screen.  SSO is set up and working when we manually log into the vendors system so thats all good.   But i cant get this to work in Flow and keep getting the vendors login page as a result.

     

    Essentially we are trying to download a document via a URL in flow. 

  • Akuner Profile Picture
    19 on at

    Hi @icee8123 

    I am having same error as you. I tried updating the audience as client ID. No luck. 

     

    Would you know if this authentication works with ADFS token or app has to be registered in Azure? Sorry new to the platform.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard