question

Jason Winston avatar image
Jason Winston asked Jason Winston answered

"Unauthorized for this grant type"

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.

authentication
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Jason Winston avatar image
Jason Winston answered

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 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys