2 Replies Latest reply: Oct 19, 2016 7:35 AM by Richard Bartley RSS

    How to prevent other visitors seeing your selections when authenticated using demo user?

    Richard Bartley

      Hello all,

       

      This question follows on from my previous discussion: Enabling exportData for anonymous users from mashup

       

      I successfully set up authentication of anonymous users using the qlik-auth module and virtual proxy configuration as show on Qlik Branch.  However, the issue is that all users can now see the selections of other users on the same qap mashup. Is there any way of forcing different sessions for the same authenticated user based on their location/ip address/some other way to ensure that users are authenticated using the dummy user but cannot see the selection of the others?

       

      Any help would be greatfully appreciated as we are considering whether or not to purchase QAP licences within the next day or so and this is a showstopper.

       

      Thanks in advance.

        • Re: How to prevent other visitors seeing your selections when authenticated using demo user?
          Richard Bartley

          I just found out that by adding an identity parameter to config in the call to the OpenApp method, this prevents sharing of the session.

           

           

           

           

          var intRandomSessionID = Math.floor((Math.random() * 1000000000) + 1);

           

          …..

          ….

          var config = {

                         host: window.location.hostname,

                         prefix: prefix,

                         port: window.location.port,

                         isSecure: window.location.protocol === "https:"

                         ,identity:intRandomSessionID

          };

           

           

          As a test, I used a random number as identity, but I will try to get the IPaddress, so that selections can be shared across pages within the same mashup.