Skip to main content

Notifications

Power Automate - General Discussion
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?

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

    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

  • v-micsh-msft Profile Picture
    v-micsh-msft on at
    Re: Can't use OAuth2 (Azure Active Directory) based custom connector to create a new connection

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard