Mashup/Capability API without a redirect for authentication?
All of the examples of the mashup/capability API in node.js that I've seen use the qlik-auth module. The drawback of the qlik-auth module is that it relies on redirection through the proxy to obtain a ticket.
What I would like to do is obtain a ticket via ajax, and defer loading the qlik client until the ticket is returned.
There doesn't, however, seem to be an API in the client to pass in the ticket and/or session and the qlik client assumes that a valid cookie is set when loaded, otherwise it redirects to the authentication URL in the virtual proxy.
How can the qlik js client be loaded without needing to be redirected to the authentication url by using the QPS session API to first obtain a ticket?
I have a trouble related with this post issue: I have server A and server B: -Server A is the server where i've qlik sense server installed. (domain1) -Server B is the server where I've have the code of QS mashup app. (domain2)
I want a Qlik ticket to authenticate app. To get this ticket I do a call to my API from the app of server B that return the string of the ticket. With this string I build an URL like this:
And put an iframe in my app to obtain the cookie to access to QlikSense.
The problem with this come when I want to import the libraryes that needs qlik to access to the app: <script>http://<my QS server>/myproxy/resoyurces/assets/external/requirejs/require.js</script>
It seems the first access that app need to do is to import requirejs and in this moment I don't have access to the session cookie and windows autehnticate form pops up.
To fix that I tried to do a landing page that load the iframe and then redirect to my app with which needs requirejs. The problem with that is landing page puts cookie into domain1 and I need to put it in the domain2 for my app can view it.
Is there any way to access to my app or to obtain the cookie before load requirejs or something similar?