Skip to main content
Answer

Trying to get Access Token from JWT in Postman - Error Code OAU-345

  • October 16, 2024
  • 3 replies
  • 317 views

Forum|alt.badge.img

I have been trying to get an access token so I can then make a callout via the API. Here is what I have done in Postman:

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

I have entered my Username and Password both with these being base encoded 64 and not encoded. This time they are not encoded. I have entered them under the Authorization tab

I have added in Headers Content-Type : application/x-www-form-urlencoded
 

In Body tab selected the x-www-form-urlencoded selected:
    - Entered grant_type: urn:ietf:params:oauth:grant-type:jwt-bearer
    - Entered assertion : eyJ[…. lots of middle stuff]...NDz that is encoded base 64

Method is POST
 

Result is

{
  "error" : "invalid_request",
  "errors" : [ {
    "errorCode" : "OAU-345",
    "message" : "Invalid assertion signature"
  } ],
  "error_description" : "Invalid assertion signature"
}

​​​​​​​What am I doing wrong???

Best answer by Nashville

I got it to work. I must have pasted in the wrong token. Thanks everyone

3 replies

Forum|alt.badge.img
  • Author
  • New Participant
  • Answer
  • October 16, 2024

I got it to work. I must have pasted in the wrong token. Thanks everyone


  • New Participant
  • November 15, 2024

Hello,

 

Please tell me where do I find or how do I generate 

“assertion”

parameter? Username/password - ok, but this assertion???

 

Much appreciated!


  • New Participant
  • November 15, 2024