question

shyamji niranjan avatar image
shyamji niranjan asked Phong Vu answered

Authorization Code Issue

When i hit the below url https://platform.ringcentral.com/restapi/oauth/authorize?response_type=code&redirect_uri=https://myapp.example.com/oauth2Callback&client_id=avalidclientid&display=&prompt= then get the issue

{  "error" : "invalid_client",  "errors" : [ {    "errorCode" : "OAU-153",    "message" : "Invalid client: sM54NwmFSIK0wxKSo5SSFA",    "parameters" : [ {      "parameterName" : "client_id",      "parameterValue" : "sM54NwmFSIK0wxKSo5SSFA"    } ]  } ],  "error_description" : "Invalid client: sM54NwmFSIK0wxKSo5SSFA" }
authentication
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

Not sure how do you implement your app and where do you run your app. But it looks like the redirect_uri https://myapp.example.com/oauth2Callback is not valid.

If you run your app on a local machine, specify the redirect_uri e.g.

RINGCENTRAL_REDIRECT_URL= 'http://localhost:[PORT]/oauth2callback'

where, [PORT] is the port you are running your server app.

Remember to change the redirect_uri in your RingCentral app as well.

1 |3000

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