<?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 Session Authentication example in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Session-Authentication-example/m-p/1943579#M16940</link>
    <description>&lt;P&gt;Hi there, I'm struggling to make &lt;A href="https://www.youtube.com/watch?v=QOA5YIqyauo" target="_self"&gt;this&lt;/A&gt; example to work.&lt;/P&gt;
&lt;P&gt;As mentioned in the comments, I downloaded the &lt;A href="https://github.com/goldbergjeffrey/SessionAPITestModule" target="_self"&gt;session module template from GitHub&lt;/A&gt;&amp;nbsp;and followed the rules to run it with Node JS over port 8190 with client certificates.&lt;/P&gt;
&lt;P&gt;Of course, I made some changes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;create a new virtual proxy
&lt;UL&gt;
&lt;LI&gt;with a unique name and prefix ("mashup")&lt;/LI&gt;
&lt;LI&gt;Ticket/Form authentication&lt;/LI&gt;
&lt;LI&gt;with a unique session cookie header name (X-Qlik-Session-mashup)&lt;/LI&gt;
&lt;LI&gt;with the following white list: localhost, &amp;lt;public domain&amp;gt;, &amp;lt;server-name&amp;gt;&lt;/LI&gt;
&lt;LI&gt;with &lt;A href="http://localhost:8190" target="_blank"&gt;http://localhost:8190&lt;/A&gt;&amp;nbsp;as session module base URI&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;within SessionAPITestModule.js
&lt;UL&gt;
&lt;LI&gt;var RESTURI = "https://&amp;lt;public domain&amp;gt;:4243/qps"&lt;/LI&gt;
&lt;LI&gt;fixed certificates name and passphrase&lt;/LI&gt;
&lt;LI&gt;added "mashup" prefix where needed (/redirect endpoint)&lt;/LI&gt;
&lt;LI&gt;used&amp;nbsp;X-Qlik-Session-mashup instead of the original cookie name&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;within&amp;nbsp;SelectUser.htm
&lt;UL&gt;
&lt;LI&gt;modified the&amp;nbsp;userDirectory parameter to our user directory (server name)&lt;/LI&gt;
&lt;LI&gt;reduced the number of lines and users to three to match users of ours&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;With this setup,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;running on localhost, I'm able to create a new session and set the cookie, but when I try to get access to Qlik Sense (through the new VP), the system replies with an internal error. Proxy logs say this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&lt;EM&gt;&lt;SPAN&gt;The underlying connection was closed: The connection was closed unexpectedly&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&lt;EM&gt;&lt;SPAN&gt;Web exception when contacting service uri &lt;A href="http://localhost:8190/" target="_blank"&gt;http://localhost:8190/&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;Is there, maybe, a better guide to follow?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 16:48:13 GMT</pubDate>
    <dc:creator>AG-gugelbisolutions</dc:creator>
    <dc:date>2022-06-14T16:48:13Z</dc:date>
    <item>
      <title>Session Authentication example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Session-Authentication-example/m-p/1943579#M16940</link>
      <description>&lt;P&gt;Hi there, I'm struggling to make &lt;A href="https://www.youtube.com/watch?v=QOA5YIqyauo" target="_self"&gt;this&lt;/A&gt; example to work.&lt;/P&gt;
&lt;P&gt;As mentioned in the comments, I downloaded the &lt;A href="https://github.com/goldbergjeffrey/SessionAPITestModule" target="_self"&gt;session module template from GitHub&lt;/A&gt;&amp;nbsp;and followed the rules to run it with Node JS over port 8190 with client certificates.&lt;/P&gt;
&lt;P&gt;Of course, I made some changes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;create a new virtual proxy
&lt;UL&gt;
&lt;LI&gt;with a unique name and prefix ("mashup")&lt;/LI&gt;
&lt;LI&gt;Ticket/Form authentication&lt;/LI&gt;
&lt;LI&gt;with a unique session cookie header name (X-Qlik-Session-mashup)&lt;/LI&gt;
&lt;LI&gt;with the following white list: localhost, &amp;lt;public domain&amp;gt;, &amp;lt;server-name&amp;gt;&lt;/LI&gt;
&lt;LI&gt;with &lt;A href="http://localhost:8190" target="_blank"&gt;http://localhost:8190&lt;/A&gt;&amp;nbsp;as session module base URI&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;within SessionAPITestModule.js
&lt;UL&gt;
&lt;LI&gt;var RESTURI = "https://&amp;lt;public domain&amp;gt;:4243/qps"&lt;/LI&gt;
&lt;LI&gt;fixed certificates name and passphrase&lt;/LI&gt;
&lt;LI&gt;added "mashup" prefix where needed (/redirect endpoint)&lt;/LI&gt;
&lt;LI&gt;used&amp;nbsp;X-Qlik-Session-mashup instead of the original cookie name&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;within&amp;nbsp;SelectUser.htm
&lt;UL&gt;
&lt;LI&gt;modified the&amp;nbsp;userDirectory parameter to our user directory (server name)&lt;/LI&gt;
&lt;LI&gt;reduced the number of lines and users to three to match users of ours&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;With this setup,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;running on localhost, I'm able to create a new session and set the cookie, but when I try to get access to Qlik Sense (through the new VP), the system replies with an internal error. Proxy logs say this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&lt;EM&gt;&lt;SPAN&gt;The underlying connection was closed: The connection was closed unexpectedly&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&lt;EM&gt;&lt;SPAN&gt;Web exception when contacting service uri &lt;A href="http://localhost:8190/" target="_blank"&gt;http://localhost:8190/&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;Is there, maybe, a better guide to follow?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 16:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Session-Authentication-example/m-p/1943579#M16940</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-06-14T16:48:13Z</dc:date>
    </item>
  </channel>
</rss>

