<?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 cookie is not working when using header authentication with virtual proxy in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1741357#M13206</link>
    <description>&lt;P&gt;We have&amp;nbsp;&lt;SPAN&gt;Qlik Sense September 2019 - 13.42.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are trying to access qlik from our company mobile app&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from qlik side, we added a virtual proxy and set the authentication method as "header authentication static user directory"&lt;/P&gt;&lt;P&gt;when accessing qlik&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -I -k -c cookie.txt "https://&amp;lt;qlik base usrl&amp;gt;/&amp;lt;virtual proxy&amp;gt;/hub/my/work" -H "&amp;lt;header-name&amp;gt;: userid"&lt;/P&gt;&lt;P&gt;receiving success response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTTP/1.1 200 OK&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Set-Cookie: X-Qlik-Session-prefix={23DA935C-D834-43BA-AA16-9F1ADCB88879}:17652123-3146-41d7-ae63-7cf8271a0295; Path=/; HttpOnly; Secure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when trying from mobile browser or from curl passing same received cookie in other following requests, qlik respond&amp;nbsp;"&lt;STRONG&gt;Could not authenticate the request: Expected an authentication header&lt;/STRONG&gt;", while same session cookie is set in the request&lt;/P&gt;&lt;P&gt;curl 'https://&amp;lt;qlik base usrl&amp;gt;/&amp;lt;virtual proxy&amp;gt;/hub/stream/e7a976fd-eff3-426f-ad88-12c97bd6d22d' \&lt;BR /&gt;-H 'Connection: keep-alive' \&lt;BR /&gt;-H 'Pragma: no-cache' \&lt;BR /&gt;-H 'Cache-Control: no-cache' \&lt;BR /&gt;-H 'Upgrade-Insecure-Requests: 1' \&lt;BR /&gt;-H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1' \&lt;BR /&gt;-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \&lt;BR /&gt;-H 'Sec-Fetch-Site: none' \&lt;BR /&gt;-H 'Sec-Fetch-Mode: navigate' \&lt;BR /&gt;-H 'Sec-Fetch-User: ?1' \&lt;BR /&gt;-H 'Sec-Fetch-Dest: document' \&lt;BR /&gt;-H 'Accept-Language: en-US,en;q=0.9,ar;q=0.8' \&lt;BR /&gt;-H 'Cookie: X-Qlik-Session-&amp;lt;&lt;STRONG&gt;prefix&lt;/STRONG&gt;&amp;gt;={23DA935C-D834-43BA-AA16-9F1ADCB88879}:17652123-3146-41d7-ae63-7cf8271a0295' \&lt;BR /&gt;--compressed \&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The only way to make it work by forcing browser to pass&amp;nbsp; user header in all&amp;nbsp; requests, which is not logic&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:32:00 GMT</pubDate>
    <dc:creator>abadreamer</dc:creator>
    <dc:date>2024-11-16T01:32:00Z</dc:date>
    <item>
      <title>session cookie is not working when using header authentication with virtual proxy</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1741357#M13206</link>
      <description>&lt;P&gt;We have&amp;nbsp;&lt;SPAN&gt;Qlik Sense September 2019 - 13.42.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are trying to access qlik from our company mobile app&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from qlik side, we added a virtual proxy and set the authentication method as "header authentication static user directory"&lt;/P&gt;&lt;P&gt;when accessing qlik&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -I -k -c cookie.txt "https://&amp;lt;qlik base usrl&amp;gt;/&amp;lt;virtual proxy&amp;gt;/hub/my/work" -H "&amp;lt;header-name&amp;gt;: userid"&lt;/P&gt;&lt;P&gt;receiving success response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTTP/1.1 200 OK&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Set-Cookie: X-Qlik-Session-prefix={23DA935C-D834-43BA-AA16-9F1ADCB88879}:17652123-3146-41d7-ae63-7cf8271a0295; Path=/; HttpOnly; Secure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when trying from mobile browser or from curl passing same received cookie in other following requests, qlik respond&amp;nbsp;"&lt;STRONG&gt;Could not authenticate the request: Expected an authentication header&lt;/STRONG&gt;", while same session cookie is set in the request&lt;/P&gt;&lt;P&gt;curl 'https://&amp;lt;qlik base usrl&amp;gt;/&amp;lt;virtual proxy&amp;gt;/hub/stream/e7a976fd-eff3-426f-ad88-12c97bd6d22d' \&lt;BR /&gt;-H 'Connection: keep-alive' \&lt;BR /&gt;-H 'Pragma: no-cache' \&lt;BR /&gt;-H 'Cache-Control: no-cache' \&lt;BR /&gt;-H 'Upgrade-Insecure-Requests: 1' \&lt;BR /&gt;-H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1' \&lt;BR /&gt;-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \&lt;BR /&gt;-H 'Sec-Fetch-Site: none' \&lt;BR /&gt;-H 'Sec-Fetch-Mode: navigate' \&lt;BR /&gt;-H 'Sec-Fetch-User: ?1' \&lt;BR /&gt;-H 'Sec-Fetch-Dest: document' \&lt;BR /&gt;-H 'Accept-Language: en-US,en;q=0.9,ar;q=0.8' \&lt;BR /&gt;-H 'Cookie: X-Qlik-Session-&amp;lt;&lt;STRONG&gt;prefix&lt;/STRONG&gt;&amp;gt;={23DA935C-D834-43BA-AA16-9F1ADCB88879}:17652123-3146-41d7-ae63-7cf8271a0295' \&lt;BR /&gt;--compressed \&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The only way to make it work by forcing browser to pass&amp;nbsp; user header in all&amp;nbsp; requests, which is not logic&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1741357#M13206</guid>
      <dc:creator>abadreamer</dc:creator>
      <dc:date>2024-11-16T01:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: session cookie is not working when using header authentication with virtual proxy</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1767939#M13640</link>
      <description>&lt;P&gt;I am seeing the same issue. did you find a fix?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 13:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1767939#M13640</guid>
      <dc:creator>mm_mercer</dc:creator>
      <dc:date>2020-12-11T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: session cookie is not working when using header authentication with virtual proxy</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1768142#M13642</link>
      <description>&lt;P&gt;no, I didn't find a solution till know&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 16:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/1768142#M13642</guid>
      <dc:creator>abadreamer</dc:creator>
      <dc:date>2020-12-13T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: session cookie is not working when using header authentication with virtual proxy</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/2471530#M20953</link>
      <description>&lt;P&gt;To whom it may concern: The cookie seems irrelevant for the auth method '&lt;SPAN&gt;Header authentication dynamic user directory'&lt;/SPAN&gt;. &lt;BR /&gt;&lt;BR /&gt;Opening a Websocket is done by setting the 'Header authentication header name' to the '$ud $id'- combination configured in the "header authentication dynamic user directory".&lt;/P&gt;
&lt;P&gt;e.g. if&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;"Header authentication header name" is set to 'test-user',&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;"header authentication dynamic user directory" is set to '$ud@$id'&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;and a user has user directory 'TEST' and username 'testuser',&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;then setting the parameters&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "test-user": "TEST@testuser"
}
&lt;/LI-CODE&gt;
&lt;P&gt;just works. It also attaches existing sessions on other machines.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 14:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/session-cookie-is-not-working-when-using-header-authentication/m-p/2471530#M20953</guid>
      <dc:creator>ohenrichs</dc:creator>
      <dc:date>2024-07-18T14:37:04Z</dc:date>
    </item>
  </channel>
</rss>

