RESTDataConnector.setDefaultAuthentication

Set the default HTTP authentication for the REST API call

JavaScript example:

  // Create a basic authentication object
  var auth = HttpAuthentication.createBasicAuthentication("username", "password")
  // Set default authentication for the RESTDataConnector
  restDataConnector.setDefaultAuthentication(auth);
  

Parameters

Authentication auth,