Question

Production API credentials used, but oauth call is done to https://platform.devtest.ringcentral.com/restapi/oauth/token

  • 3 October 2019
  • 4 replies
  • 3803 views

Response: StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Connection: keep-alive X-Application-Context: application:8080 RCRequestId: f653128e-e625-11e9-9732-005056bbcdd9 Pragma: no-cache AceRoutingKey: sjc11-c01-ace11.545acde5-e606-11e9-9962-005056bb6e9b X-HLB-Server: sjc11-c01-hlb11 X-HLB-Connection: 506144065 X-HLB-RequestId: 380d1c46f54662a05742c2a3c947ec0a X-HLB-Upstream-Server: 10.28.21.80:8080 X-HLB-Upstream-Status: 400 Cache-Control: no-store Date: Thu, 03 Oct 2019 21:37:13 GMT Server: nginx WWW-Authenticate: Bearer realm="RingCentral REST API", error="invalid_grant", error_description="Invalid resource owner credentials" Content-Length: 199 Content-Language: en Content-Type: application/json; charset=utf-8 } Content: { "error" : "invalid_grant", "errors" : [ { "errorCode" : "OAU-140", "message" : "Invalid resource owner credentials" } ], "error_description" : "Invalid resource owner credentials" }
Request: Method: POST, RequestUri: 'https://platform.devtest.ringcentral.com/restapi/oauth/token', Version: 1.1, Content: System.Net.Http.FormUrlEncodedContent, Headers: { X-User-Agent: Unknown/0.0.1 RingCentral.Net/2.0.2 Authorization: Basic R1NNVUxRMnhTVGV2RnhaSVFsb0tidzo3WHVwRFY3X1IzeTNPRlBDMWRwRkRBTnFTeWhuOXRTc3lsSnc3RDdtdGJmUQ== Content-Type: application/x-www-form-urlencoded Content-Length: 79 } Content: <content has been disposed by HttpClient: https://github.com/dotnet/corefx/issues/1794>

4 replies

The error seems to reflect that your credentials are wrong. What is the URL you are hitting? Is that dev or prod?

Can you please check with developer support and submit a help ticket with your application client id so that they can check the issue?

Userlevel 1

I see you are using the RingCentral .NET SDK. To authenticate with the production credentials, change the last param to true.

RestClient rcsdk = new RestClient(PROD_CLIENTID, PROD_CLIENTSECRET, true);

Is this a free tier app?

The last thing now I can guess is being a free tier app.

As per my conversation with the backend dev support team was when I was facing similar kind of issues not able to test the app in production.

What they said was free tier app will not be able to test it using our account and any other RC user (paid user) can test the integration app in production.

Now I hope this is not the case with you.

We have the same issue: cannot login users with the account details configured for production environment. What is the solution for this issue?

Reply