question

Vascular Access On Demand avatar image
Vascular Access On Demand asked Phong Vu commented

Invalid resource owner credentials in Production

I have moved my app into production and am now getting the subject error. Since it is in production, I am using the main account's password, not the sandbox one. My config is:

{"RINGCENTRAL_CLIENTID":"Rwy3VDRaS2qvDvkmtgsGaw","RINGCENTRAL_CLIENTSECRET":"wdRJHQbQR8GfKR_xxxxxx","RINGCENTRAL_SERVER":"https://platform.ringcentral.com","RINGCENTRAL_USERNAME":"+1513794xxxx","RINGCENTRAL_EXTENSION":"101","RINGCENTRAL_PASSWORD":"<YOUR ACCOUNT PASSWORD>"}

I can log into the admin portal so I know the password is correct. Am I missing something?

credentials
1 |1500 characters needed characters left characters exceeded

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

First of all, don't reveal both app client id and client secret in public (I deleted part of it). Treat the secret as a sensitive information.

Having a look at your account, you have only one user in the production and the user extension number is 0. So why you login with "101"? That was the reason you could not login.

1 |1500 characters needed characters left characters exceeded

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

Vascular Access On Demand avatar image
Vascular Access On Demand answered

Thanks for looking out after me! I put 101 because that's what was in the JSON download. As you indicated, 0 worked.


Thanks!

Floyd

1 |1500 characters needed characters left characters exceeded

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

Yinglu Wang avatar image
Yinglu Wang answered Phong Vu commented

hey @Phong Vu I have a similar issue and got the same error. I usually log in with my email. Should I put email or phone number as username?

My clientId = Y5UjfttkTeSF2S8V04zgOg

Current parameters:

clientId = ssm.get_parameter( f "RC_CLIENT_ID_PROD" ) clientSecret = ssm.get_parameter( f "RC_CLIENT_SECRET_PROD" ) serverURL = "https://platform.ringcentral.com" username = "+17049125736" extension = '101' password = ssm.get_parameter( f "RC_PASSWORD_PROD" )
,

@Phong Vu I have a similar issue where I got the same error. I always logged into my account using email. Should I put email or phone number as the username?

My clientId = Y5UjfttkTeSF2S8V04zgOg


Parameters:

clientSecret = ssm.get_parameter( f "RC_CLIENT_SECRET_PROD" ) serverURL = "https://platform.ringcentral.com" username = "+17049125736" extension = '101' password = ssm.get_parameter( f "RC_PASSWORD_PROD" )
1 comment
1 |1500 characters needed characters left characters exceeded

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

You login with the main company phone number and extension number 101, which is the super admin. Are you the super admin (101)? If not, use a correct extension number. Otherwise, double check your login credentials by login the account web service at https://service.ringcentral.com, if you can log in the site, you should be able to login your app with exact credentials. Email address or phone number should work for both,

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