Making API call with WebServicesClient from within a WSBO rule

Hi Mario

I use Headers in the HTTP Operation, then reference those

example:
Header:
X-IDNUrl = https://myTenant.api.identitynow.com
X-IDNClientSecret = $application.private_key_password$

Then in Before Operation rule:

    Map headers = requestEndPoint.getHeader();
    String IDN_URL = (String) headers.get("X-IDNUrl");
    String IDN_CLIENT_ID = (String) headers.get("X-IDNClientId");
    String IDN_CLIENT_SECRET = (String) headers.get("X-IDNClientSecret");

Use PATCH to set IDN PAT

[
    {
        "op": "add",
        "path": "/connectorAttributes/private_key_password",
        "value": "5afc4............................b8bc8"
    }
]

I like to use private_key_password because then it is automatically encrypted.

2 Likes