Skip to main content

Notifications

Community site session details

Community site session details

Session Id : xiKds1ZTfBVt5D+BCE+GR0
Power Apps - Building Power Apps
Unanswered

How to connect custom API using OAuth2 in Microsoft Power Automate?

Like (0) ShareShare
ReportReport
Posted on 13 Jun 2021 23:04:07 by

I am a new member of the platform, so help would mean a lot to me. I'm trying to get a bearer token in Power Automate flow using Oauth 2.0. Since I use a custom connector it is not clear to me what should I specify under the URI field? I have attached screenshots (only the data from the second screenshots I use in Postman, and everything works normally). Thank you.

 

 

petarPan_0-1623625309861.png

 

petarPan_1-1623625326959.png

 

  • Community Power Platform Member Profile Picture
    on 17 Jun 2021 at 18:27:30
    Re: How to connect custom API using OAuth2 in Microsoft Power Automate?

    Thank you for response. I will try it. 

  • PaulD1 Profile Picture
    2,914 on 16 Jun 2021 at 23:54:02
    Re: How to connect custom API using OAuth2 in Microsoft Power Automate?

    Not very familiar with OAuth and the like - but your URL is for localhost (your PC) and Flow is running in the cloud, so will not be able to connect to that address.

    If you have a custom connector you should be able to add it to your connections and then select that connection in Power Automate and pass in parameters directly rather than having to use HTTP action (a customer connector provides a more user-friendly interface to what you would otherwise use the HTTP action for).

  • Community Power Platform Member Profile Picture
    on 14 Jun 2021 at 11:37:31
    Re: How to connect custom API using OAuth2 in Microsoft Power Automate?
    I have Access Token Url`http://localhost:60001/identity/connect/token` as URL. when I try this, I get the error that URI is invalid. 
  • Community Power Platform Member Profile Picture
    on 14 Jun 2021 at 06:37:14
    Re: How to connect custom API using OAuth2 in Microsoft Power Automate?

    Hi Wearsky. I don't know how to get the URI, for custom connectors. What should I do?

  • v-xiaochen-msft Profile Picture
    on 14 Jun 2021 at 01:49:35
    Re: How to connect custom API using OAuth2 in Microsoft Power Automate?

    Hi @Anonymous ,

     

    URI is used to enter your API.

    v-xiaochen-msft_0-1623635349231.png

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started
Loading complete