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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector authe...
Power Automate
Unanswered

Custom Connector authentication

(0) ShareShare
ReportReport
Posted on by 95
I have a custom connector (OAuth 2.0 with Generic OAuth 2 identity provider) that I built and when I test it, it works and gives a 200 response. 
 
But when I try to use it, the authentication will expire an hour later.

 

Here is the API reference for authentication:

 

https://developers.ringcentral.com/api-reference/authentication

 

I'm guessing I don't have the correct refresh URL?

 

2020-02-20_15-10-47.png

 
I switched to the swagger editor because I've never done that and wanted to see if there was something in there I could use to find out why the authentication is expiring.
 
There's an authorize button in the swagger editor, so I press it. Then fill in client ID and secret and press another authorize button.
 
It opens another browser tab to this URL:
 
 
And I see this in my browser:
{
 "error" : "invalid_grant",
 "errors" : [ {
 "errorCode" : "OAU-109",
 "message" : "Redirect URIs do not match"
 } ],
 "error_description" : "Redirect URIs do not match"
}
Looks like the redirect_uri is really https://canada.flow.microsoft.com/oauth2-redirect.html
 
But the custom connector UI told me the redirect URI was https://global.consent.azure-apim.net/redirect
 
Just wondering if my issue is really because there is some problem under the hood due to mismatched redirect URI?
 
 
 
Also wondering why when I enter a Refresh URL in the UI and save the connector, it doesn't show up but the Authorization URL and Token URL do (see above picture)?
 
Any help would be appreciated.
 
Thanks
John
Categories:
I have the same question (0)
  • Chris Hammond Profile Picture
    130 on at

    Hi @JohnMacDougall 

     

    Did you manage to resolve this issue because I am experiencing the same right now.... 

     

    I put the  https://xxxx.flow.microsoft.com/oauth2-redirect.htmlin my App Registration redirect URL list and now I get a 404 page on that redirect.

     

    Thanks

    Chris.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard