5.1 Authentication Feature Description
The WebSocket API is fully compatible with Refinitiv Data Platform Authentication.
Authentication can be done within a Login Request Message that contains token information. The user will receive either a Login Refresh Message if the Login was successful or a Status Message in the event of a failure.
An application can also perform an automatic Login by passing token credentials during the initial WebSocket connection to the Refinitiv Real-Time Advanced Distribution Server via HTTP Cookies. The names of these Cookies may be configured on the Refinitiv Real-Time Advanced Distribution Server using the following configuration parameters:
|
*ads*authTokenName : AuthToken |
*ads*positionName : position |
*ads*applicationIdName : applicationId |
|
If the Refinitiv Real-Time Advanced Distribution Server detects the presence of Authentication credentials passed in HTTP Cookies during the initial WebSocket connection, the Refinitiv Real-Time Advanced Distribution Server will generate a Login Request Message for the user using the credentials passed. In this automatic Login case, the ID assigned to the generated Login Request will be a negative number, normally -1, as it is source generated.