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
OAU-251 password flow issue
Tags: errors
Jan 7, 2022 at 8:56am   •   1 replies  •  0 likes
Dave MacLean

I have a password flow for a REST API application. It is set to private so password flow can be used. We are getting the error:

"errorCode" : "OAU-251",

"message" : "Unauthorized for this grant type"


There is no longer a platform question when building an app.


Our grant type is grant_type=password&username={1}&extension=101password={2}

{1}= urlEncode(number) and {2}= urlEncode(password)

& our authorization header is 'Basic ' + $Basic which is a base64 encode of the client_ID:clientSecret


I have tried the username and passwords as just strings with no urlEncode. I have tried removing the +. I have changed the headers & double checked the clientID and client secret of the sandbox as many times as possible. I have followed almost all of the questions the forum has to offer.


Any ideas how to fix this?

1 Answer
answered on Jan 7, 2022 at 9:35am  

Seriously you posted the username and full password in public forum? I masked the password now!

There must be a mistake some where in your code. What language are you writing and can you share the code. Any reason why you are not using any RingCentral SDK? At least for double check if your app is setup properly.


 0
on Jan 7, 2022 at 10:53am   •  0 likes

That information was old and not viable anymore but I will cover up the rest. Thanks. We are just going to have to upgrade our auth method. Thanks for your response.



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