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
"Invalid resource owner credentials" for Password Flow via Postman
Tags: authentication, oath
Jun 1, 2019 at 9:32am   •   2 replies  •  0 likes
sravani kandarpa

I have an app with Platform type as "Password Flow: and "Refresh Token" . I am using postman to access token and I get below error.

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

Below is what I have tried:

  1. https://platform.devtest.ringcentral.com/restapi/oauth/token? along with parameters - username, password, extension and grant_type=password.
  2. Auth - Auth Basic used username = Client_id and password =Client Secret.

I do see authentication is added in header.

I have tested auth using the link below, using the same parameters and client id/secret.

http://ringcentral.github.io/api-explorer/#!/Authentication/oauth_token_post

Could you please help me in fixing the error.

Kindly let me know if I am using incorrect method.

Thank you.

2 Answers
answered on May 30, 2020 at 11:22am  

This occurs due to invalid username or password please check it properly..in my case I'm faced this issue too...im sharing the screenshot here


 0
answered on Jun 26, 2019 at 2:42pm  

First of all you need to keep in mind that in body, we need to pass the parameters in following way :

username=<account phone number>&password=<account password>&extension=<your extension>&grant_type=refresh_token&refresh_token=<the refresh token generated>

username should be the phone number


In header part

"Authorization",:"Basic <ClientID:ClientSecret in base 64> 

You need to convert ClientID and ClientSecret into base64.

Remaining all seems fine.

Make sure you have done the same


 0
answered on Jun 18, 2019 at 1:34pm  

First of all you need to keep in mind that in body, we need to pass the parameters in following way :

username=<account phone number>&password=<account password>&extension=<your extension>&grant_type=refresh_token&refresh_token=<the refresh token generated>

username should be the phone number

In header part

"Authorization",:"Basic <ClientID:ClientSecret in base 64> 

You need to convert ClientID and ClientSecret into base64.

Remaining all seems fine.

Make sure you have done the same


 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