Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everybody,
I'm trying to use NTLM authentication mode instead of certificates using QRS API.
Here's the snippet code I tried so far:
//QRS utility // url = "https://bc-poc:4242/qrs/systeminfo" // NTLM - Doesn't work, error 403 request.UserAgent = "Windows"; request.PreAuthenticate = true; var nc = new NetworkCredential("username", "password"); CredentialCache credentialCache = new CredentialCache(); credentialCache.Add(new Uri(url), "NTLM", nc); request.Credentials = credentialCache; // Certificate - Works OK request.ClientCertificates.Add(_certificate); request.ServerCertificateValidationCallback += ServerCertificateValidationCallback;
I also tried to work with the following SDK:
https://www.nuget.org/packages/QlikSenseRestClient/
Unfortunately using this SDK I got the same 403 error.
I'm looking for sample code or a simple project that connects to the Qlik QRS using NTLM authentication.
Also, It should be on .net and not in python.
Thanks
Eli.
A 403 actually sounds more like a security rule issue (or possibly an incorrect endpoint) than an authentication issue. Authentication problems typically trigger a 401. Which endpoint is triggering the 403? And are you able to do "GET /qrs/about"?
By the way, I recently updated the library you are referring to so that it can support login using non-default credentials. Please try it out! It would be great to get a confirmation that it's actually working in other environments than just on my machine 🙂
And also, there was a very similar question to this one posted on Community just before yours that might be of interest to you:
Have a look at this post, I successfully authenticated using NTLM from a Linux machine: