Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there, I'm pretty new to the usage of APIs with Qlik Sense, especially to build a custom web app.
Reading this page I see there are basically two ways to connect to the QRS:
Given that I'm working with a single node Windows environment, I was able to start exploring the QRS API following the first way, but not the second. More precisely, these were my Postman settings:
What should I do in order to follow the second way? I tried the next:
Simple things first: When you want to access the api through the proxy, then you should not include the port number. The proxy will take care of guiding the request to the right port depending on the URL.
But the hard thing here is getting the authentication right. One of the main responsibilities of the proxy (or virtual proxy to be precise) is to provide an authentication method. The exact set of headers you need to access Qlik Sense through the proxy therefore depends on what type of authentication method is configured for the virtual proxy you are connecting to. So you should start by checking how the proxy is configured.
Postman might not support the authentication methods you need though. It seems that it for instance has limited port for Windows authentication (NTLM) which is quite common for Qlik Sense:
https://stackoverflow.com/questions/37341304/pass-ntlm-with-postman
Thank you @Øystein_Kolsrud, I made a mistake while writing the post and I'm actually not using ports when trying to connect through the QPS.
At the moment I'm using the default virtual proxy with NTLM and I tried the following Postman configuration, with no success:
Any help would be appreciated.
Thanks
I made a step forwad: I realized I did not include the public IP address in the host whitelist and now, at least, I get the Qlik Sense Login Page, instead of the list of the apps.
I should probably perform a different call, perhaps /qps/ticket beforehand.
I'll let you know but, in the meanwhile, any suggestion is of help.
Even with qps/ticket I get redirected to the login page.
Is this the intended behaviour?
You'll get redirected there if the headers are not right. I'm afraid I don't know enough about Postman to know if it's possible to use it for NTLM authentication these days. I know I've tried that at some point and wasn't able to make it work, but that was a couple of years ago. Looking at that stackoverflow thread I posted about earlier it seems like it's possible, but that rather tricky.