We had a similar case where we had to get an auth token from one end point and add it to the header of the API request being sent for any of the operations
As this was not happening with the standard configuration settings available in IDN, this is what we did:
- Set up only one Http Operation with second Endpoint in the context URL
- Call the first End Point to get “someID” (using
org.apache.http.impl.client.HttpClientBuilder
orsailpoint.connector.webservices.WebServicesClient
) from inside the BeforeOperation Rule of above Http Operation and update the header of the same with the value received for “someID”
Map headerMap = requestEndPoint.getHeader();
headerMap.put("token", sessionID);
requestEndPoint.setHeader(headerMap);