question

Upvotes
Accepted
1 0 0 3

Auth configuration on ADS to allow EWA WebSocket connection

What's the authentication config on ADS to allow EWA websocket connection?

Thanks.

Jun

refinitiv-realtimewebsocketsADS
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
11.5k 16 7 10

@jun.ma

Did you set the valid DACS user into the connection function? Basically, the ADS lets you enable/disable authentication via the *ads*dacs*featureEnabled : <True or False> parameter only. Could you please give me a snippet of code that call EWA connect function?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
11.5k 16 7 10

Hi @jun.ma

You need to input the following authentication information into the EWA's connect() function

  • name: Your user name/DACS ID that has been set in the DACS server
  • nameType: must be 3
  • applicationId: your application identifier
  • applicationName: your application name
  • position: name or IP address of a particular machine and display

Example code:

sess.connect({
   name:'wasin',
   nameType:3,
   applicationName:'EWA App',
   applicationId:'777',
   position:'10.1.51.10',
   url: <ADS IP>,
...
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks, @wasin.waeosri. I am aware of the parameters setup. The problem we have right now is, when trying the connection to our ADS, there is always an 20111 error, saying "authentication token was not authorized or not present." So i think there is a problem in our ADS config file. Any suggestions, which switch in ADS config file or other config file controls the token authentication? -Jun

Upvotes
1 0 0 3

I found my problem, may be this can help others.

I got ADS "authentication failed or token not found" error on EWA side due to incorrect value for the "position" field in the request. I switched to use the standard "1.1.1.1/net" as the value of "position", then connect is okay.

Jun

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea