Skip to main content

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? 

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": r

        {

            "errorCode": "OAU-123",

            "message": "Client authentication is required"

        }

    ]

}


Solved, I was missing the Authorization header ….

Authorization: Basic client_id:client_secret  #encoded in Base64 format

 

I hope this helps someone! 


Reply