Skip to main content
Question

OAU-251 password flow issue

  • January 7, 2022
  • 2 replies
  • 634 views

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?

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • January 7, 2022

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.


  • Author
  • New Participant
  • January 7, 2022

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.