Skip to main content
Question

Grant-Type issue on app with JWT Flow

  • February 25, 2025
  • 2 replies
  • 215 views

App Client ID is WaOUXvk0oXtdlR79ZvmEZt
I created a private app for us to use, and I selected JWT flow however when running js to get the access token I get Username/password authentication is deprecated. Please migrate to the JWT grant type.

Which is starnge because I selected the JWT flow when creating it and I’m using the provided script. Could I please get this looked into or advice? 

2 replies

  • Author
  • New Participant
  • February 25, 2025

I tried to generate the access token with  Postman, and I'm running into issues.

Here's what I wrote in Postman:

URL: https://platform.ringcentral.com/restapi/oauth/token

Headers
Content-Type: application/x-www-form-urlencoded

Body
grant_type: urn:ietf:params:oauth:grant-type:jwt-bearer
assertion: JWT token generated in the console for all apps under my Organization
client-id: WaOUXvk0oXtdlR79ZvmEZt
client-secret: c7Hp7saR............

{

    "error": "invalid_client",

    "error_description": "Client authentication is required",

    "errors": [

        {

            "errorCode": "OAU-123",

            "message": "Client authentication is required"

        }

    ]

}


  • Author
  • New Participant
  • February 25, 2025

Solved, I was missing the Authorization header ….

Authorization: Basic client_id:client_secret  #encoded in Base64 format

 

I hope this helps someone!