News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Main Company Number requried for Authentication
Tags: authorization, authentication
Feb 12, 2021 at 2:26pm   •   2 replies  •  0 likes
Ravindra Jumrani

Hi I am using my company Ring Central Account to test the API but every time I get

Content: {

"error" : "invalid_grant",

"errors" : [ {

"errorCode" : "OAU-140",

"message" : "Invalid resource owner credentials"

} ],

"error_description" : "Invalid resource owner credentials"

}

I am using the correct username and password. I tried username with the account user name, my phone number, main company phone number but every time I get the same error.

Do we need to 101 extension always or the extension number of the account of which we are using credentials.

Thanks.

2 Answers
answered on Feb 13, 2021 at 9:19pm  

Thank You Phong Vu,

I am not able to login with the username (email address and not my phone number) and password on service.devtest.ringcentral.com but using same credentials I am able to login to https://service.ringcentral.com/.

Does it mean that we have to only use admin account to connect an API. I confirmed with my network team that the account I am using doesn't have admin privileges.

I tried with all combinations

1) Username (email address) and password (101 or my account extension)- Fails.

2) Username (Main Company Number) and password (101 or my account extension)- Fails.

3) Username (My account Number) and password (101 or my account extension)- Fails.

I am tried with the sample code provided in the below link as well but got the same results.

https://developers.ringcentral.com/guide/meetings/quick-start#c#

Thank You in anticipation.


 0
on Feb 14, 2021 at 9:07am   •  0 likes

When you wrote this "I am not able to login with the username (email address and not my phone number) and password on service.devtest.ringcentral.com but using same credentials I am able to login to https://service.ringcentral.com/." It means that you are talking about your production environment.

In that case, you have to graduate your app to the production then change these app credentials in the sample code.

const string RINGCENTRAL_CLIENTID = "<ENTER PRODUCTION CLIENT ID>";
const string RINGCENTRAL_CLIENTSECRET = "<ENTER PRODUCTION CLIENT SECRET>";
const bool RINGCENTRAL_PRODUCTION = true;


on Feb 14, 2021 at 7:42pm   •  0 likes

I understood but since this my new API, it won't allow me to graduate to production until and unless app is working on sandbox without any errors.

Please let me know if the API will only work with the admin account or a general account as well.

on Feb 14, 2021 at 8:47pm   •  0 likes

Then you have to log in with a test user under your sandbox account! And you should know a user login credentials under your sandbox account.

on Feb 15, 2021 at 8:10pm   •  0 likes

I am using Sandbox account and this is what I see in my test app

sandbox.png

on Feb 15, 2021 at 8:15pm   •  0 likes

That is your developer portal, NOT your sandbox. Your sandbox is at service.devtest.ringcentral.com.

You can access it from the icon shown below

screen-shot-2021-02-15-at-81251-pm.png

answered on Feb 12, 2021 at 6:22pm  

If you use the main company number to login with the super admin (normally the 101 extension), then you don't need the extension number. If you use the main company number to log in another user extension, then you must specify the extension number. Remember the password must be the password of that user extension.

One way to double check if you are login with the correct username and password. If you can login the service.devtest.ringcentral.com, you should be able to authenticate your app with that username and password.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us