question

Fax Admin avatar image
Fax Admin asked Phong Vu commented

unable to text JWT authorization using Postman

I am testing 'JWT authorization flow' but getting error
"errorCode": "OAU-250",

"message": "Unsupported grant type"

using : https://platform.devtest.ringcentral.com/restapi/oauth/token

1700575856403.png


1700576037796.png

I don't want to use SDK as I will deploy on MS-SQL Server.

authentication
1700575856403.png (88.9 KiB)
1700576037796.png (47.8 KiB)
1 |3000

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

Phong Vu avatar image
Phong Vu answered Phong Vu commented

Can you double check the grant type of your app to see if it is JWT auth flow? Or let me know the app client id.

3 comments
1 |3000

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

Fax Admin avatar image Fax Admin commented ·

tried on Powershell too
1700579742176.png


App client Id: avDmFoV208obAVOTmKzqMu

Auth flow is JWT only

0 Likes 0 ·
1700579742176.png (106.0 KiB)
Fax Admin avatar image Fax Admin commented ·

surprisingly no log
1700581691219.png

0 Likes 0 ·
1700581691219.png (28.7 KiB)
Phong Vu avatar image Phong Vu ♦♦ Fax Admin commented ·

It seems you use the wrong app client id. Here is the analytics of the app you gave me its client id.

screen-shot-2023-11-21-at-102755-am.png

0 Likes 0 ·
Fax Admin avatar image
Fax Admin answered

So working Powersell Code to get the access token using JWT is

1700589246521.png


DO NOT pass 'body' as below

1700589314976.png


1700589246521.png (51.0 KiB)
1700589314976.png (19.8 KiB)
1 |3000

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

Fax Admin avatar image
Fax Admin answered

same for Postman looks like

1700589378348.png


1700589378348.png (54.0 KiB)
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