Management Pack Builder

 View Only
  • 1.  session authentication

    Posted Oct 05, 2023 08:48 AM

    Hi need to work with an rest api (trend micro deep security) that needs session authentication via a specific endpoint /api/authentiction.

    This works so far, however once i login to get a session id the api responds with the plain key but this is not reconzided by the MP Builder in the next step. I think any response need to be in a json key to be reconzized and used as a variable for authentication.

    Is there any way to use the whole body response as a variable or another workaround ?




  • 2.  RE: session authentication

    Broadcom Employee
    Posted Oct 09, 2023 03:16 PM

    Hi Nick,

    Currently the MP Builder only supports JSON responses -- there's no workaround to use an unformatted response directly. A couple other options to explore as workarounds:

    1. The TrendMicro Deep Security API may support Basic Auth rather than using a session token.

    2. If the session token doesn't expire (or has a sufficiently long expiration), you could manually generate a token one time and set the session token header in Custom authentication (step 2 of Source configuration). If you do this, it is recommended to select 'sensitive' for the API token header.

    Please let me know if either of these approaches will work for you, or if you need any further assistance.

    Best regards,