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
jwt
Tags: get token
Jan 14, 2024 at 6:28pm   •   5 replies  •  0 likes
Jigar Patel

Hi,

I previously used the password for auth flow of my app.

Now the password is no longer allowed. I switched to json web token, and followed the instructions and the example for python. I obtained the jwt, entered into my code, but:


I am also getting

Unauthorized for this grant type
5 Answers
answered on Feb 7, 2024 at 10:53am  

@Phong Vu I am seeing the same error, is there a delay before jwt becomes enabled?


 0
on Feb 8, 2024 at 8:26am   •  0 likes

Should be quick and within an hour. Does the problem still exist? If so, what is the app client id?

on Feb 15, 2024 at 7:21am   •  0 likes

In my experience, the change to JWT took effect after about an hour, and there was a period of time during that hour where both username/pass Auth and JWT Auth would fail.

on Feb 15, 2024 at 7:31am   •  1 likes

Thanks for sharing your observation. I will convey this info to the engineering team.

answered on Jan 19, 2024 at 6:26am  

The JWT auth works now, and my app is working again!

Thank you for all your help!


 1
answered on Jan 18, 2024 at 4:29pm  

My app is a Windows desktop app.

How long does it take for the change to JWT token flow to take effect?


Thank you


 0
answered on Jan 18, 2024 at 6:32am  

Hi Mr. Phong,

my clinet ID: kAZYBRDmQFWLcRLeKyZTgw

as for auth type, i see this in App settings:

1705588331923.png


 0
on Jan 18, 2024 at 7:55am   •  0 likes

So your app is a native Windows desktop app or a Web app? Right now the platform type app is Desktop/Windows. And the app grant type is Authorization code and Password flow.

I disabled the password flow and enabled the JWT token flow for your app so you should be able to use JWT token now.

If your app is truly a Windows desktop app, you should think about the way you will deploy your app and how the users can be authenticated. You may find authorization code flow would be more suitable for your app.

answered on Jan 15, 2024 at 7:43am  

Did you login the RingCentral developer portal and change the auth type for your app? And what is the app client id?


 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