websy85 / nodejs-qliksense

An example of using a NodeJS backend to integrate with Qlik Sense
18 stars 9 forks source link

nodejs-qliksense

A basic example of using a Node.js backend to integrate with the Qlik Sense Server Mashup API. NOTE: This solution is built to make configuration/distribution simple and provide a foundation for understanding how to create such an environment. It should be considered a building block rather than a production ready solution as it does not cover such things as security. The example uses the Node.js 'http' module to run a simple web server. For more information on the 'http' module please refer to the Node.js documentation - http://nodejs.org/api/http.html

Pre-requisites:

Configuration:

The Authentication Communication Workflow:

  1. The script.js file in the public folder tries to load the qlik.js mashup API from the configured Qlik Sense Server.
  2. At this point the 'Authentication module redirect URI' on the virtual proxy is called.
  3. This is handled by the server.js file of the node solution and currently hardcodes a user called 'sample'.
  4. The qlik-auth module is then called to send a ticket request with the specified config.
  5. A ticketId is returned and a session is established.
  6. No user input is required at any stage of this example workflow.