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
"Unauthorized for this grant type"
Tags: authentication
Oct 12, 2023 at 4:38pm   •   1 replies  •  0 likes
Jason Winston

I am trying to switch my app from username/password to JWT since the former is being phased out. I created a production JWT token (initially one for all my apps, and when that didn't work one specific to my app) and updated my production app to set it to JWT auth flow. However when I run this:

...

rcsdk = SDK(RINGCENTRAL_CLIENT_ID, RINGCENTRAL_CLIENT_SECRET, RINGCENTRAL_SERVER_URL)

platform = rcsdk.platform()

platform.login(jwt=JWT_TOKEN)


The code fails on the last line with "Unauthorized for this grant type". Anyone know what is wrong? Thanks.

1 Answer
answered on Oct 12, 2023 at 5:23pm  

I figured this out. For anyone who sees this in the future, I needed to update the python ringcentral package's dependencies, pubnub and requests. Then it worked.


 1



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