question

Petre Dimov avatar image
Petre Dimov asked Phong Vu edited

RestClient authorization failed, reason: prohibited for private application

Hi community,

We are trying to implement RingCentral supervise by party in our software solution. We have created sandbox application and everything works fine, we can supervise, the traffic is totally fine. When we switch the application from Sandbox to Production, on authorization we got this error on authorization:

For authorization we are using RingCentral.Net library in .Net 4.5.

Request:

Method: POST, RequestUri: 'https://platform.ringcentral.com/restapi/oauth/token', Version: 1.1, Content: System.Net.Http.FormUrlEncodedContent, Headers:

{

X-User-Agent: Unknown/0.0.1 RingCentral.Net/4.1.0

Authorization: Basic ODgyRXRIZ3BUOU9GREs4SHp0TjI1UToxU0hTNzVnclJYMjRWakZKVjF4RHdnVmgtWmQ3ZWRTcGVpNG8waHhRMk51dw==

Content-Type: application/x-www-form-urlencoded

Content-Length: 82

}

StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:

Content: {
  "error" : "invalid_client",
  "errors" : [ {
    "errorCode" : "OAU-255",
    "message" : "Access to account [423250064] is prohibited for private application",
    "parameters" : [ {
      "parameterName" : "account_id",
      "parameterValue" : "423250064"
    } ]
  } ],
  "error_description" : "Access to account [423250064] is prohibited for private application"
}


Any help how to continue, is this some configuration issue that we are facing?

Thanks,
Petre Dimov

errorsauthentication
1 |3000

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

You can create a support ticket here or contact Dev support team with the issue.

1 |3000

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

Phong Vu avatar image
Phong Vu answered

Which app did you try on production? I see none of these apps has been graduated to the production yet.

screen-shot-2020-12-07-at-73216-am.png


1 |3000

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

Petre Dimov avatar image
Petre Dimov answered Phong Vu edited

Hi Phong Vu,

We have resolved the issue, i'm not using my web applications, we are using the one from our client. I have another issue regarding my testing.

During the development phase we were using your RingCentral phone (windows)

application, to automatically register device and answer the calls, that were supervised by party. During testing phase we notice that phone application is add calls on hold if there are simultaneous. So we develop and active SIP Server that will register our device and respond to the SIP messages.

Issue:

We successfully registering extension programmatically in code. After every call, we supervise by party and receive event “INVITE”, on which we are trying to respond with “TRYING” and “200OK (SDP)”, in order to answer the call and receive the RTP data. After send 200OK on the INVITE we receive this error:


"errorCode" : "TAS-119",

"message" : "Can't reach deviceId specified in request".


Our registered device is online after registration.


Any suggestions?

I'm using application: WindowsDesktop, under account: alfredo.sa@retell.co.uk .

1 comment
1 |3000

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

Phong Vu avatar image Phong Vu ♦♦ commented ·

Can you post this in a new thread. And also exclude any stuff which may not have anything to do with the problem or explain better what you do with some code snippet? Also, what transport protocol do you use when registered for a SIP device?

0 Likes 0 ·

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