<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to pass authentication token to websocket call in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-pass-authentication-token-to-websocket-call/m-p/2451816#M98029</link>
    <description>&lt;P&gt;I am creating a simple mashup and it generates below config --&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var config = {&lt;BR /&gt;host: window.location.hostname,&lt;BR /&gt;prefix: prefix,&lt;BR /&gt;port: window.location.port,&lt;BR /&gt;isSecure: window.location.protocol === "https:"&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;This is then used to make websocket calls , like https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;prefix&amp;gt;/&lt;SPAN&gt;app/engineData?reloadUri=....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am exposing the dashboard through a different domain. I need to authenticate separately and pass a 'token' to this websocket call. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Like&amp;nbsp;https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;prefix&amp;gt;/app/engineData?reloadUri=....&amp;amp;token=&amp;lt;TOKEN&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How to configure the config options to pass this token in every websocket call?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question is for Qlik Sense enterprise edition.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2024 15:50:16 GMT</pubDate>
    <dc:creator>apurvk</dc:creator>
    <dc:date>2024-05-13T15:50:16Z</dc:date>
    <item>
      <title>How to pass authentication token to websocket call</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-pass-authentication-token-to-websocket-call/m-p/2451816#M98029</link>
      <description>&lt;P&gt;I am creating a simple mashup and it generates below config --&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var config = {&lt;BR /&gt;host: window.location.hostname,&lt;BR /&gt;prefix: prefix,&lt;BR /&gt;port: window.location.port,&lt;BR /&gt;isSecure: window.location.protocol === "https:"&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;This is then used to make websocket calls , like https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;prefix&amp;gt;/&lt;SPAN&gt;app/engineData?reloadUri=....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am exposing the dashboard through a different domain. I need to authenticate separately and pass a 'token' to this websocket call. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Like&amp;nbsp;https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;prefix&amp;gt;/app/engineData?reloadUri=....&amp;amp;token=&amp;lt;TOKEN&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How to configure the config options to pass this token in every websocket call?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question is for Qlik Sense enterprise edition.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 15:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-pass-authentication-token-to-websocket-call/m-p/2451816#M98029</guid>
      <dc:creator>apurvk</dc:creator>
      <dc:date>2024-05-13T15:50:16Z</dc:date>
    </item>
  </channel>
</rss>

