Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have some problems setting up qlik sense server installation to use the session module for authentication.
I want to be able to authenticate my users externaly, use the session api to create a session in the qps and then authenticate using the received token (as described here)
By using the example posted here (flautrup/SessionAPITestModule · GitHub) I've managed to create the session tokens that I need. But I don't understand how to configure qlik to use the tokens as authentication. After I set the cookie X-Qlik-Session to the token received I still get redirected to host:4244/windows_authentication/?targetID=a0aa.... i.e. windows authentication.
How can I configure Qlik to use the session cookie as authentication instead.
/Viktor
hi,
can please explain how are you able to get the session tokens with the help of sessionAPITestModule?? I am using the same code module but if i provide a url on selectuser.htm it gets redirected to that url without establishing the session. and if am not providing the url its give me error.
Just wanted to know how are you able to get the session token ??
Regards,
Tanvi
Hello Viktor,
Did you solve your problem using the API Session Module approach?
I tried playing with the SessionAPITestModule too, but ran into issues with "Error: socket hang up" in node.js. I was able to read the node.js code and see the cookie get set for my localhost domain though. So, my understanding is that the Qlik session wasn't created in their SessionModule. This git demo may be broken?
You said your issue was that you didn't know how to configure Qlik to use the API Session tokens (via cookies) as authentication. What was your solution?
Hi. Did you ever resolve this? We are in the process of deploying Qlik and we want to use the Session Module.
While we did find the Session API information, we have a few questions about it:
- We cannot find in the QMC where to enable or configure the Session Module. We don't know the [session_module_root]
- What does ""UserDirectory" mean for the request?
- When a user logs out, are you supposed to Delete the session?
I would appreciate any help on any of these questions.
Thanks,
Facundo
This is long overdue, but the Session Module is seriously mal-documented from Qlik. And the modules on GitHub are so fractured, it like putting together a jigsaw puzzle of a whiteout during an arctic blizzard.
For anyone else that happens to be in this Qlik deserted spot, here are some of the latest clues I've managed to figure out.
As for the UserDirectory, you may freely choose this, (e.g. 'SSO') to distinguish users logged in via this virtual proxy, from users logged in via other means. (I.e 'SSO\john', may not be the same user as 'MYDOMAIN\john'.)
Under QMC - Licenses and tokens - User access rules, you may create a new rule to allow SS users access to given documents.
(E.g. user.userDirectory="SSO")
If anyone has any more information, corrections, etc about the session module mystery in Qlik Sense, please update this thread, and we might be able to get this troll out in the open, so that it bursts....
Cheers,
Vegard Bakke
@jeffrey Goldberg created a nice video about this topic.
And if you want to learn more about security and authentication in Qlik Sense I would recommend http://integration.qlik.com/slides select the security topic
I've been developing a lib to connect to qliksense and authenticate user as simple as possible. You can checkout the repo https://github.com/qmoni/qliksense-api. Hope you can use it, thanks!