If the web service is authenticated, the monitor agent will now try to authenticate first before calling it.
Added support for Username and Password Token Authentication.
To authenticate using username and password, you can invoke a login API. This API will receive a username and password via a JSON request. In return, you will receive an access token that you can use to access APIs. The Content-Type header must be set to application/json.