How to use more than one endpoint in a WS connector?

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:

  1. Set up only one Http Operation with second Endpoint in the context URL
  2. Call the first End Point to get “someID” (using org.apache.http.impl.client.HttpClientBuilder or sailpoint.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);
1 Like