cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JohnMacDougall
Level: Powered On

Custom Connector authentication

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

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,789)