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 - Unauthorized for this grant type
Tags: authentication
Feb 28, 2024 at 6:59am   •   2 replies  •  1 likes
ridgedale-front-desk

I'm trying to update my app to use JWT. I'm using the C# API. It seems like a one line change, but I'm getting the error

"errorCode" : "OAU-251",

"message" : "Unauthorized for this grant type"

2 Answers
answered on Feb 29, 2024 at 7:19am  

Hi,


I am facing exact same error "OAU-251", I have re-activated my sandbox account for this trial before I do change in production. But I am stuck.

what I did:

1) Reactivated the Sandbox - New number was provided as it was expired.

2) Created one JWT and restricted it for only one App by providing client ID

3) Attempted JWT authorization and got "OAU-251" error.

4) I am still able to use Password flow to Auth. But SMS is stopped so cannot test! :(

If Auth type change is required, then please share the page link from where to do that.


 0
on Feb 29, 2024 at 8:51am   •  0 likes

Finally, it worked. Under App/Settings I changed Auth Setting to JWT auth flow and after 10-15 minutes it worked. But the Password auth flow option is gone now!!

answered on Feb 28, 2024 at 7:26am  

Try again after 5 or 10 mins after you changes the auth type.

If the problem persists, give me the app client id so I can enable both password flow and JWT so that you can continue support the password flow until March 31st while you are testing the JWT flow.


 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