Expand my Community achievements bar.

Migrating from JWT to OAuth, can generate tokens, but UNAUTHORIZED

Avatar

Level 1

We're migrating to the OAuth Server-to-Server credentials.  Completed step one of retrieving the client secret and can successfully generate access tokens.  However, when replacing the API authorization bearer token with the new OAUTH token, we receive an UNAUTHORIZED response.

3 Replies

Avatar

Employee
Employee

Could you add any information about the error you receive and the request id?

 

Avatar

Level 1

Request ID: 1fa7526b-be0e-4827-9fb9-b5838e86eb65

for "transientDocuments"

Response:

Content:
{"code":"INVALID_ACCESS_TOKEN","message":"Access token provided is invalid or has expired"}

Error Exception:

{"Request failed with status code Unauthorized"}

Error Code: Unauthorized

 

NOTE: the token was just created and has not expired.

 

Avatar

Employee
Employee

I think you should create a support ticket with those details. Also include the API endpoint in your ticket.