Auth configuration on ADS to allow EWA WebSocket connection

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

Thanks.

Jun

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    @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?

Answers

  • 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>,
    ...
  • 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

  • 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