Log in to the external system

Besides user name and password, the endpoint system (Service Anywhere) also requires a cookie in the request header to perform authentication. This cookie comes from another URL of a Software as a Service (SAAS) portal.

The function below performs the following tasks:

  1. Log in to the SAAS portal by using the user name and password
  2. Extract the cookie from the response
  3. Set the cookie to param.

The Case Exchange framework then saves the cookie to the SMIS configuration. The succeeding calls can directly retrieve the cookie from the SMIS configuration until the cookie expires.

Out-of-box function:

CaseExchange_SAWUtil.doLoginRequest

The function has the following parameters:

  • param: All parameters defined in the SMIS configuration. You can get a specific parameter value by using the param['object'] syntax. If you change any value in this parameter, the change is saved to the SMIS configuration.

The function returns the following result:

N/A