Description
How to check Fortify SSC API authentication using curl from either MS-DOS or Shell prompt.
Resolution
Run this curl from either MS-DOS (Windows) or Shell prompt (Linux) to check Fortify API authentication:
Syntax:
curl -X GET https://<server>/ssc/api/v1/projectVersions -H "Authorization: FortifyToken <token>"
Note: remember to replace <server>/ssc and <token> for yours:
<server>/ssc
<token>
If you can see the SSC application projectVersions in a JSON then there isn't any problem.
This command can be used from other platforms that will support the use of curl like Azure DevOps Agent Shell among others.
For more information about the APIs, please check:
Accessing the Fortify Software Security Center API Documentation
https://www.microfocus.com/documentation/fortify-software-security-center/2320/SSC_Help_23.2.0/index.htm#SSC_UG/Access_API_Doc.htm?Highlight=API