0 Replies Latest reply: Nov 13, 2015 11:43 AM by loic lamy RSS

    Developpement Connect Qlik Sense for SSO

      Hello,

       

      My Qlik Sense is Version: 2.1.1 on a server.

      I have created user (user1) on this server.

      This user connect to this app (local and internet).

       

       

      I have other server, on other domain. I would like save user1 credentials on my developpment (C#) in order to user1 don't authenticated must. i would to retrieve this user Token.


      But this don't work :

      //Create the HTTP Request and add required headers and content in xrfkey

      string xrfkey = "0123456789abcdef";

      HttpWebRequest request = (HttpWebRequest)WebRequest.Create(@"https://servername.com/QRS/app?xrfkey=" + xrfkey);

      request.Method = "GET";

      request.UserAgent = "Windows";

      request.Accept = "application/json";

      request.Headers.Add("X-Qlik-xrfkey", xrfkey);

      // specify to run as the current Microsoft Windows user

      request.Credentials = new NetworkCredential("user1", "password");

      // make the web request and return the content

      HttpWebResponse response = (HttpWebResponse)request.GetResponse();

      Stream stream = response.GetResponseStream();

      Console.WriteLine(new StreamReader(stream).ReadToEnd());

       

       

      It is possible ? I must use Framework 3.5.