Custom OAuth2 Client JWT Token is invalid

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom OAuth2 Client JWT Token is invalid

L4 Transporter

I created an OAuth2 client application by following the guidance in the article below:

https://community.cyberark.com/s/article/Securing-OAuth2-API-Workloads-on-CyberArk-ISPSS?t=1772659821139

However, when I use the generated bearer token, the request fails with a “JWT Token invalid” error.

{ "ErrorCode": "CAJWT001E", "ErrorMessage": "Invalid JWT token." }

I have tested this using Postman, cURL, and PowerShell, and the same error occurs in all cases.

Could you please advise on what might be causing this issue or what additional configuration I should verify.

If use tokenplatform it endpoint API works fine.

1 accepted solution

Accepted Solutions

L2 Linker

Hi

The error CAJWT001E occurs because tokens generated via a Custom OAuth2 Client are only intended for CyberArk Identity APIs. If you are calling other platform services (like Privilege Cloud), the token will be rejected because it lacks the required platform-level claims.

Since you confirmed that the platformtoken endpoint works, you should use that for your integration as it is the standard for ISPSS workloads.

 

Adding this two docs for better understanding:

https://docs.cyberark.com/identity/latest/en/content/coreservices/authenticate/oauth2-client.htm

 

https://api-docs.cyberark.com/create-api-token/docs/create-api-token

 

 

View solution in original post

1 REPLY 1

L2 Linker

Hi

The error CAJWT001E occurs because tokens generated via a Custom OAuth2 Client are only intended for CyberArk Identity APIs. If you are calling other platform services (like Privilege Cloud), the token will be rejected because it lacks the required platform-level claims.

Since you confirmed that the platformtoken endpoint works, you should use that for your integration as it is the standard for ISPSS workloads.

 

Adding this two docs for better understanding:

https://docs.cyberark.com/identity/latest/en/content/coreservices/authenticate/oauth2-client.htm

 

https://api-docs.cyberark.com/create-api-token/docs/create-api-token

 

 

  • 1 accepted solution
  • 58 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!