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" }
issue getting authorization code
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

·
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 |1000

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

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.