1 Reply Latest reply: Jan 4, 2017 5:50 AM by Nayana M RSS

    Qlik Sense ASP.NET SDK Open New Tab and Authenticate User

    Tim Kendrick

      I don't know why this is so incredibly hard. All I want to do is open a specific Qlik Sense dashboard in a new tab alongside my ASP.NET application and log the user in automatically.

       

      I'm using a proxy server and currently I am doing the following:

       

      Uri dashboard = new Uri("https://subdomain.domain.com");

      ILocation location = Qlik.Engine.Location.FromUri(dashboard);

      location.AsNtlmUserViaProxy(loginCredentials: new NetworkCredential("USERNAME", "PASSWORD", "DOMAIN"));

       

      This all works fine and If I do something like this I can see the app names of all the apps in my account, so I know I am connecting properly.

       

      foreach(IAppIdentifier app in location.GetAppIdentifiers())

      {

           Console.WriteLine(app.AppName);

      }

       

      So, how can I turn this into simply opening a new tab in my browser and authenticating the user automatically so they can see their apps?

        • Re: Qlik Sense ASP.NET SDK Open New Tab and Authenticate User
          Nayana M

          Hi,

           

          I am trying to connect Qlik Sense server through dotnet sdk and getting below mentioned error:-

          Qlik.Sense.JsonRpc.CommunicationErrorException: Connection failed after 4 attempts. Error message:

          Value cannot be null.

           

           

          I tried :-

            location.AsNtlmUserViaProxy(proxyUsesSsl: uri.Scheme.Equals(Uri.UriSchemeHttps), loginCredentials: new NetworkCredential(username, password, domain));

          but I am unable to connect to Qliksense server.

           

          Please advice me.

           

          Thanks,

          Nayana