question

Mohan Rao avatar image
Mohan Rao asked Phong Vu answered

My public app in prodcution suddenly getting 400 bad requests paid users from other accounts are not authorising

Hello Team,


Our app public app (live in Production) and is working fine for long time but suddenly we are getting below mentioned response and we are using RingCentral SDK, 3-legged authorization flow

{
"error": "invalid_client",
"errors": [
{
"errorCode": "OAU-123",
"message": "Client authentication is required"
}
],
"error_description": "Client authentication is required"
}


and our client id is: MPI3D5LuTHqVlzzUJcwvtA


Thanks in advance




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

Is this affected a certain user or all users?

0 Likes 0 ·
BrightGauge Software avatar image
BrightGauge Software answered BrightGauge Software commented

Also I am getting same error with 3-legged authorization flow(Server side web app) settings. created ticket as well but no response from them.
1635835521936.png


1635835521936.png (42.2 KiB)
9 comments
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 ·

What is the ticket number?

0 Likes 0 ·
BrightGauge Software avatar image BrightGauge Software Phong Vu ♦♦ commented ·

Case number - 13889695.
It got closed without resolution.

0 Likes 0 ·
BrightGauge Software avatar image BrightGauge Software BrightGauge Software commented ·

[ { "errorCode" : "OAU-123", "message" : "Client authentication is required" } ], "error_description" : "Client authentication is required" }.


This is the error we are getting.

0 Likes 0 ·
Show more comments
vyshakhbabji avatar image
vyshakhbabji Deactivated answered

BrightGaugeSoftware : Asking the support team to take a look into the ticket : 13889695

@Mohan , Have you opened Dev Support ticket ?


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

After checking with the engineers. I learn that recently we reenforce OAuth with the client id and client secret in the auth header. So if your current auth code does not include the client secret, it will fail with the error codeOAU-123 as you reported.
https://developers.ringcentral.com/api-reference/Authorization

For confidential clients (server applications) client_id is not enough, you need to provide Authorization header (containing Base64-encoded client_id and client_secret) or client_assertion parameter via JWT client request.


Please update your oauth header and try again.

Let me know if this helps.

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