and more in a single search tool across platforms. Read the announcement here. |
08/29/2023 10:58 AM
So I've got a .JAR file that creates an HMAC authz header and then packages that header into a request to retrieve a list of users (the response is a JSON like any other REST response, but the reason to do this with a .JAR is the calculated HMAC header that needs to be sent with the request).
How do I invoke this from the accountandentimportjson for example and then trigger the import from the job control panel using a job?
How should I structure what is in the connector for this to work to get a response and grab the records to import account data?
08/30/2023 01:14 PM
I can't find any examples of this on docs or in the forum, if it already exists I can work from being pointed in the right direction as well?
08/30/2023 01:45 PM
This is currently not supported.
08/30/2023 01:47 PM
09/05/2023 12:41 PM - edited 09/05/2023 12:42 PM
Getting the access token from JAR will not work as is not supported. Is it possible to get the value from another api and then pass it along the final call.
09/07/2023 09:02 AM
I COULD do that but hosting that would be the problem. Really I just need to be able to generate the HMAC header for the AuthZ request in EIC. If there is an API for that for Veracode that would be great, but I don't think there is as their postman reference details how you generate it yourself.
Instead of how I'm doing it in the .JAR, do you know of any ways to generate the HMAC header in EIC and use that in the Authorization call?
09/11/2023 10:28 AM
Unfortunately I do not think there is a way to achieve this but let me check and will update.
09/12/2023 07:14 AM
TY Sahil, looking forward to hearing from you.
09/22/2023 12:23 PM
I checked this and unfortunately this is not doable.
10/12/2023 03:16 PM
Hello!
I was able to do something similar using a JAR file and the JAR connector to call it. The JAR file contained java code that pulled users (accounts) from a source system by building a custom query and calling it via the account import job. The username/pwd/clientid was stored in the connection json field and the method from the JAR was specified in the importaccountsjson field to run with other inputs/configs in the importaccountsjson field.
The list of accounts returned were then written to Saviynt as account objects under a specified security system/endpoint.
I am triggering this from the Job control panel using an "Application Data Import" type job.
Found this documentation on JAR connector in saviynt: https://docs.saviyntcloud.com/bundle/JAR-v2022x/page/Content/About-this-Guide.htm
Not sure if this has changed with the newer versions. Even though it might not be the exact same scenario, hope this helps generate some ideas to address your challenge!