News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

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
Sandbox Get Token Failing
Tags: getting started
Oct 15, 2019 at 9:46am   •   4 replies  •  0 likes
Red Cypress

I have a new app (new everything). It's private, and server only ui so the Authorization Flow is "Password". I've calculated my Base64 for my key:secret, and submit the following using SOAPUI (Curl-like tool):

Accept-Encoding: gzip,deflate
MIME-Version: 1.0
Authorization: Basic <redacted base64 code>
Accept: application/json
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

I'm getting a response that says:

"error": "invalid_grant",
"errors": [ {
"errorCode": "OAU-140",
"message": "Invalid resource owner credentials"
"error_description": "Invalid resource owner credentials"

I'm unclear on which of my credentials is incorrect. I've checked them I'm not sure where to go next?

3 Answers
answered on Oct 16, 2019 at 7:47am  

I finally got it working in my tool SOAPUI. I had to put the query parameters in the message body instead of the usual place on the URL. This is for anyone struggling with this.

You guys might want to add that little requirement in your docs. Unless it's there, and I missed it?

answered on Oct 15, 2019 at 7:22pm  

@Phong Vu As I said in my post, I'm using a curl-like tool called SOAP to test the interface. Once I see that working, I will then implement in code. It helps me isolate code problems from interface problems.

I don't use an SDK because you do not have one for Visual Basic.

Anyway for me to find out why it's failing if my app looks ok?


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

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

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