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
Unable to obtain an oAuth token in development. Error states "Invalid resource owner credentials"
Tags: oauth
Jul 27, 2021 at 2:17pm   •   2 replies  •  0 likes
Sierra Gold2

So, I have been trying to get the Call Log API set up and am going through the development process. I created an app and ensured that I can login to both login.ringcentral.com and developers.ringcentral.com using the same credentials for both areas. The "Try It" button shows that the app has permissions so I have tried obtaining an oAuth token by sending an API request to https://platform.devtest.ringcentral.com and get an "invalid grant" error with a message of "Invalid resource owner credentials" I have tried sending the request via postman and via the ringcentral gitHub API explorer (https://ringcentral.github.io/api-explorer/#!/Authentication/oauth_token_post) and both return the same error. I am using password as the grant_type and have confirmed that the app I created does support the password flow. The app credentials even show "Active" for the password in the sandbox area. I am using 14243227530 as the user. I have also tried using the email associated with the account but have had no luck. Please let me know what I am doing wrong. Thanks!

2 Answers
answered on Aug 5, 2021 at 9:26am  

If you are trying in postman client to obtain Auth token, format will be as below:

POST https://platform.devtest.ringcentral.com/restapi/oauth/token

Body: username=<phone_number>&password=<password>&extension=<extension>&grant_type=password

Headers: Content-Type: application/x-www-form-urlencoded

Authorization: Basic <base 64 of Clienid:ClientSecret>

Client id and secret values you will get from app dashboard


 0
answered on Aug 5, 2021 at 8:52am  

Answered in this thread.


 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