Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Highlighted
Partner
Partner

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

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?

1 Reply
nayanamungila
New Contributor

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

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