<?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 Re: HTTP GET call to /qps/user endpoint does not deliver session cookie in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1796990#M14701</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125464"&gt;@frankpacker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you seen the following documentation already?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/Platform/Content/Sense_PlatformOverview/Integration/expose-qlik-sense.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/Platform/Content/Sense_PlatformOverview/Integration/expose-qlik-sense.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;When using a web browser, the web browser sends a ticket to the proxy.&lt;/EM&gt;&lt;/STRONG&gt; The proxy then returns a cookie to the browser and this cookie is included in the communication with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="CommonComponentsEngineName"&gt;Qlik associative engine&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;When using a custom client, the client must set the cookie and provide it to the proxy.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 20:36:39 GMT</pubDate>
    <dc:creator>NadiaB</dc:creator>
    <dc:date>2021-04-05T20:36:39Z</dc:date>
    <item>
      <title>HTTP GET call to /qps/user endpoint does not deliver session cookie</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1796544#M14100</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a mashup that receives a Qlik ticket as a parameter in its URL. The ticket is issued via a server-side login form, and that portion of the process works fine.&lt;/P&gt;&lt;P&gt;The problem is that when the ticket is consumed by the mashup app by making an HTTP GET call to&amp;nbsp;&lt;SPAN&gt;{server}/{virtual proxy}&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;qps/user?QlikTicket={received ticket} the session cookie is not delivered, and this action appears to kill the logged-in session on the Qlik server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The expected response is received from making the GET request - the logged in user, directory etc is returned, but no cookie is set and immediately repeating the call with the same ticket returns the {session: "inactive"} response.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I set the mashup to load a resource from the Qlik server with the ticket appended, the cookie is delivered and that works ok, but I need to be able do it via the HTTP GET call, not in HTML&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The GET approach that I'm using is based on this post: &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Authentication-with-the-Capability-APIs/ba-p/1470210" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Authentication-with-the-Capability-APIs/ba-p/1470210&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm using Qlik Sense Enterprise November 2020 SR7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Code that's executed when the parameter is present in the URL for http call (Angular):&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.http.get&amp;lt;any&amp;gt;("https://{server}/{virual proxy}/qps/user?QlikTicket="+ticket).subscribe(data =&amp;gt; {
        if(data.userId) {
            this.isLoggedin.next(true);  //informs the rest of the app that the session is live
        }
    })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Does anyone have any advice as to why the session cookie is not delivered, and the session on the Qlik server is completely destroyed?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1796544#M14100</guid>
      <dc:creator>frankpacker</dc:creator>
      <dc:date>2024-11-16T17:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP GET call to /qps/user endpoint does not deliver session cookie</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1796990#M14701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125464"&gt;@frankpacker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you seen the following documentation already?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/Platform/Content/Sense_PlatformOverview/Integration/expose-qlik-sense.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/Platform/Content/Sense_PlatformOverview/Integration/expose-qlik-sense.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;When using a web browser, the web browser sends a ticket to the proxy.&lt;/EM&gt;&lt;/STRONG&gt; The proxy then returns a cookie to the browser and this cookie is included in the communication with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="CommonComponentsEngineName"&gt;Qlik associative engine&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;When using a custom client, the client must set the cookie and provide it to the proxy.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 20:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1796990#M14701</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2021-04-05T20:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP GET call to /qps/user endpoint does not deliver session cookie</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1797551#M14717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125464"&gt;@frankpacker&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I suggest you to verify the ticket using it in a browser calling the complete URL. Remember that ticket could be consumed only one time, so you should comment the QPS call in your script.&lt;/P&gt;&lt;P&gt;Another point to attention, I'm not an expert with JS, but it &lt;SPAN&gt;has a synchronous execution model. Maybe the JS engine execute the QPS call previously to have the ticket and variable ticket is empty at the get time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/HTTP-GET-call-to-qps-user-endpoint-does-not-deliver-session/m-p/1797551#M14717</guid>
      <dc:creator>andregas</dc:creator>
      <dc:date>2021-04-07T12:48:11Z</dc:date>
    </item>
  </channel>
</rss>

