Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Highlighted
Not applicable

Accessing Qlik Sense Server using header authentication fails to exception

I try to connect the server with static header authenctication in .NET SDK:

  Qlik.Engine.ILocation loc = Qlik.Engine.Location.FromUri(new Uri("https://XXX.cloudapp.net"));

        loc.VirtualProxyPath = "testi1";

        loc.AsStaticHeaderUserViaProxy("ValidUser", "HeaderAuthencticationHeaderName");

     

         using (IHub hun = loc.Hub())

         {

            textBox.Text = hun.OSVersion();

         }

This fails with the exception:

"

An unhandled exception of type 'System.Security.Authentication.AuthenticationException' occurred in Qlik.Engine.dll

Additional information: The remote certificate is invalid according to the validation procedure.

"

How to pass the validation procedure??

Tags (2)
3 Replies
Not applicable

Re: Accessing Qlik Sense Server using header authentication fails to exception

If i try to connect with http the exception is:

"

System.IO.IOException: The handshake failed due to an unexpected packet format.

   at Qlik.Engine.Hub.QTProduct()

   at Qlik.Engine.LocationExtensions.Hub(ILocation location, ISession session, Boolean noVersionCheck)

  ..

"

Partner
Partner

Re: Accessing Qlik Sense Server using header authentication fails to exception

Hi I get same exception did you find a solution?

Thanks

Not applicable

Re: Accessing Qlik Sense Server using header authentication fails to exception

I cannot find the websocket example in SDK NET documentation, to which the exception implies