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 / Can't use OAuth2 (Azur...
Power Automate
Unanswered

Can't use OAuth2 (Azure Active Directory) based custom connector to create a new connection

(0) ShareShare
ReportReport
Posted on by

I am trying to build a custom connector for my API using the swagger doc. I want to secure it with OAuth2 through Azure Active Directory. I have given all the necessary details in the Security section for the connector. However, when I try to use this custom connector to build a new connection, I keep getting this same error even after giving the correct password:

 

ms-flow-error.PNG

 

I have followed the instructions in this blog post to setup this connector:

https://flow.microsoft.com/en-us/documentation/customapi-azure-resource-manager-tutorial/

 

Am I missing something here?

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Could you please explain a bit for the API that you would like to build for custom connector?

    The API should support OAuth2 method if you would like to use OAuth2 to build the corresponding connector.

    The example in the article you shared is using Azure Resource Manager API as an example, which could be authenticated through the AAD.

    If you followed all the steps mentioned in the article, then could you please share your swagger file here?

     

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    on at

    Thanks for the reply Smiley Happy

     

    The API is built using ASP.NET Web API. I am authenticating the API using another Azure AD application. I have linked this application to the MS Flow Azure AD application which I am trying to use for authentication purposes.

     

    The swagger file is located at: http://uprincesecureprodapi.azurewebsites.net/swagger/docs/v1

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard