Skip to main content
Question

Invalid resource owner credentials in Production

  • March 29, 2021
  • 4 replies
  • 585 views

  • New Participant

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?

4 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • March 29, 2021

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.


  • Author
  • New Participant
  • March 29, 2021

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


  • New Participant
  • July 14, 2021

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")

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • July 14, 2021

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,