SP324231 (Community Member) asked a question.

Powershell API sample with HMAC

Am I correct that any API samples, e.g. this one:

https://community.veracode.com/s/question/0D534000047NDDvCAO/anyone-have-a-functioning-sample-of-invoking-uploadfiledo-using-powershell-without-the-c-or-java-api-wrapper

 

that directly pass credentials in the request will no longer work since the API now requires the HMAC approach?

 

If so, does anyone have a powershell sample using the latest approach?


  • Anthony Fielding (Veracode)

    Hi @SP324231 (Community Member)​,

    The Veracode integrations and APIs use HMAC authentication when accessing API resources. You can find out more about the HMAC authentication we use, along with some examples for Python, Java and C# in the Help Center here: https://help.veracode.com/r/c_enabling_hmac.

     

    You may be interested in the HMAC Signing Libraries section of the list of Veracode Community Projects here: https://github.com/veracode/Veracode-Community-Projects#hmac-signing-libraries. I note there is a PowerShell example that could be just what you're looking for. Please note that these projects are community contributed and not supported by Veracode.

     

    Thanks,

    Anthony

    Expand Post
  • ABacchi035478 (Community Member)

    Hey so I like to map the location of the java wrapper,

    as well as mapping the API_ID and API_KEY

    Then I call the java wrapper file and save the XML result to a variable so I can explore it later-

     

    [xml]$teamxml = java -jar $javaWrapper -vid $apiId -vkey $apiKey -action GetteamList

     

    $vcteams = $teamxml.teamlist.team

     

    Expand Post

Topics (2)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.