Authenticating the probe using REST or WebSocket

The probe can authenticate with the client by passing the username and password with every request it makes to the service as an HTTP basic authentication header.

To specify HTTP header options to use in all HTTP requests, use the httpHeaders property in the restWebSocketTransport.properties file. The httpHeader property allows you to specify a list of (comma-separated) HTTP header options.

To authenticate the probe, include Authorization in the list of header options. For example, to authenticate using the username Me and the password MyPassword, include in the value set for the httpHeader property the following header option:

Authorization=Basic Me:MyPassword.

The probe encodes the Username:Password credentials that follow the single whitespace after Basic as a Base-64 encoded string. The probe prefixes to the resulting string Basic and a space, and passes this as an authorization header with every request. The probe passes this as an authorization header with every request.