Skip to main content

Notifications

Community site session details

Community site session details

Session Id : sZO002XHzsn1nTi+MfIFvG
Power Automate - Using Connectors
Answered

Http Action - Connect to Web API with Active Directory OAuth

Like (0) ShareShare
ReportReport
Posted on 5 Nov 2018 11:08:14 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.

 

 

 

 

  • Akuner Profile Picture
    19 on 31 Mar 2022 at 09:25:21
    Re: Http Action - Connect to Web API with Active Directory OAuth

    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.

  • soilleir Profile Picture
    18 on 19 Jan 2022 at 11:29:54
    Re: Http Action - Connect to Web API with Active Directory OAuth

    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. 

  • Verified answer
    icee8123 Profile Picture
    29 on 05 Nov 2018 at 22:06:00
    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. 

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Using Connectors

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

#2
VictorIvanidze Profile Picture

VictorIvanidze 2

#2
GI-06050833-0 Profile Picture

GI-06050833-0 2

Overall leaderboard

Featured topics