question

tristan-brooks9956 avatar image
tristan-brooks9956 asked Tyler Liu commented

Redirect URIs do not match - WebRTC JS Demo

I'm a new developer, so please bear with me, but I'm trying to spin up the demo and I get an error response the the Redirect URIs don't match. In the app settings I have a localhost redirect URI since I'm running the demo locally. I'm sure that this is a problem with my understanding of OAuth flow for this demo.My app is a Browser Based app, and Im working from this repo  https://github.com/anilkumarbp/ringcentral-web-phone/tree/feature/OAuth-2.0/demo  for the demo. I have the VoiP enabled for my app. If it is simple enough to explain or redirect me to an explanation I would appreciate it.
topic-default
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

·
Tyler Liu avatar image
Tyler Liu answered Tyler Liu commented
 "Redirect URIs don't match"

You need to login developer.ringcentral.com, find your app, go to the settings tab of your app, and set OAuth Redirect URI to a proper value.  The redirect uri used in your code should match the value here.
2 comments
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

vadim-soluyanov6963 avatar image vadim-soluyanov6963 commented ·
Hi,Tyler!

Whether this error can say that someone under the same login and password is already authorized. I corrected the path to the applications in the settings, but the error remained


0 Likes 0 ·
Tyler Liu avatar image Tyler Liu commented ·
I don't think it has anything to do with "someone under the same login and password is already authorized. "


Check the instructions here:  https://github.com/ringcentral/ringcentral-web-phone#demo

Then you would need to add  http://localhost:8080/demo/callback.html as the OAuth Redirect URI for the application in  Developer Portal
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.