question

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj asked Samyukta Bharadwaj edited

"Invalid resource owner credentials" error OR What credentials should I use?

 "error" : "invalid_grant",
  "errors" : [ {
    "errorCode" : "OAU-140",
    "message" : "Invalid resource owner credentials"
  } ],
  "error_description" : "Invalid resource owner credentials"
rest apierrorsauthentication
1 |3000

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

1 Answer

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj answered

"Invalid resource owner credentials" error usually occurs when the credentials are incorrect. Please try logging in to Service web (service.ringcentral.com) using the same credentials (username, Extension and password) you are using to authorize the application to make API calls. If your password is incorrect, you can reset it yourself by clicking the Forgot password link. You can go ahead and do that by clicking on the Forgot Password link.


resetpassword.png


Also if your application is in production, you need to switch all your credentials from sandbox to production.


To Verify this,


  • Login to developer.ringcentral.com
  • Go to Console, click on your app and on the Dashboard go to View All Credentials.
  • Please confirm that all the credentials API server URL, CLient ID Client Secret Username and Password are all from Production as shown in screenshot below


viewallcredentials.png


Please note that the extension provided in the developer portal is a default extension 101 which never changes and may not be your extension.. So for extension, use the one that you are trying to login from your code. To get the correct extension number you can also login to service.ringcentral.com (for production) and service.devtest.ringcentral.com for (sandbox). The password that you input should be associated with the extension.


Use the correct extension:

Please note that the Extension you see in the developer portal console (above image) is the admin default extension OR the extension that was created first in the system.

Each user has their own extension and a password associated with that extension. In order to see which extension to use, you must check your profile

consoleprofile-credentials.png you can also look at the extension when you log into service.ringcentral.com with the correct extension and password.


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