I would be working on a POC to get checkmarx reports using REST API, for this I have reffered checkmarx API knowledge documentation and it looks like we need an access token to interact with checkmarx API using Java REST API.
Can someone please help me on how to generate Access token for Checkmarx API.
Thanks, Karthik P.
This is described in the documentation
Basically, you need to send POST request to
/cxrestapi/auth/identity/connect/token
endpoint with bunch of hardcoded values:And your credentials:
If everything is OK, you'll get JSON response with
access_token
key which is your token, to be used in following requests as header likeAuthorization: Bearer <INSERT_TOKEN>