Skip to main content
Solved

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

  • October 16, 2024
  • 3 replies
  • 86 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

View original
Did this thread help you find an answer to your question?

3 replies

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

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


Hello,

 

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

“assertion”

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

 

Much appreciated!



Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings