question

IT Department avatar image
IT Department asked Phong Vu answered

JWT access token failure

I have created a JWT token for my ungraduated app. I am trying in Postman the POST method to obtain an access token using this process: https://developers.ringcentral.com/guide/authentication/jwt-flow


When I use the sandbox URI of https://platform.devtest.ringcentral.com/restapi/oauth/token

I get error OAU-336: "Audience claim value is not equal to token endpoint URL".


So I tried Production URI of https://platform.ringcentral.com/restapi/oauth/token

Which then gives me a different error OAU-165: "Sandbox client is not allowed".


I have triple checked and my credentials are alright, I am passing in all necessary authorizations and parameters. I must be using the wrong URI but haven't found any others to try.

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

Phong Vu avatar image
Phong Vu answered

There must be a mistake in your code where you use the JWT to exchange for the access token. Submit a dev support ticket to get help.

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