question

Ted Dangerfield avatar image
Ted Dangerfield asked Anirban answered

No redirect URI error, in sandbox env

Hello,

I am attempting to use the RingCentral embeddable widget and can use assistance in setting the redirectURL. I've followed this document for configuring the app, in developers.ringcentral.com. Step 4 indicates to add a redirect URL in app settings. I tried setting the OAuth Redirect URL to the following:

https://apps.ringcentral.com/integration/ringcentral-embeddable/1.5.0/redirect.html

But to no avail. When attempting to log into the widget (embedded in a local Angular app), I receive "No redirect uri is registered for the client".

I attempted to pass in the redirectURL, but receive the same error message. Here is my embedded script:

<script>
  (function () {
    var rcs = document.createElement("script");
    rcs.src =
      "https://apps.ringcentral.com/integration/ringcentral-embeddable/1.5.0/adapter.js?clientId=<MyClientId>&appServer=https://platform.devtest.ringcentral.com&redirectUri=https://apps.ringcentral.com/integration/ringcentral-embeddable/1.5.0/redirect.html";
    var rcs0 = document.getElementsByTagName("script")[0];
    rcs0.parentNode.insertBefore(rcs, rcs0);
  })();
</script>


How do I go about setting the redirect URL?

Note: when using the non-versioned adapter (https://ringcentral.github.io/ringcentral-embeddable/adapter.js) and not passing in the clientId, I am able to login successfully.

developer sandboxerrors
1 |1500 characters needed characters left characters exceeded

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

Ted Dangerfield avatar image
Ted Dangerfield answered

This was resolved upon creating a new app in developer.ringcentral.com.

1 |1500 characters needed characters left characters exceeded

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

Adrian Carreon avatar image
Adrian Carreon answered

Hi Ted,

I'm having the same problem, could you show me how to resolve it?
What is the correct configuration for a RingCentral App?

I'll appreciate you help! Thank you!

1 |1500 characters needed characters left characters exceeded

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

Anirban avatar image
Anirban answered

Just curious, did you configured OAuth Redirect URI to a proper value in developer.ringcentral.com in your app?

1 |1500 characters needed characters left characters exceeded

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys