Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
apurvk
Contributor
Contributor

How to pass authentication token to websocket call

I am creating a simple mashup and it generates below config -- 

var config = {
host: window.location.hostname,
prefix: prefix,
port: window.location.port,
isSecure: window.location.protocol === "https:"
};

This is then used to make websocket calls , like https://<host>:<port>/<prefix>/app/engineData?reloadUri=....

 

I am exposing the dashboard through a different domain. I need to authenticate separately and pass a 'token' to this websocket call.

Like https://<host>:<port>/<prefix>/app/engineData?reloadUri=....&token=<TOKEN>

How to configure the config options to pass this token in every websocket call?

 

This question is for Qlik Sense enterprise edition. 

Labels (1)
0 Replies