Skip to main content

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" }

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.


Reply