<?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 Logging Out from Qliksense using Enigma in Browser in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Logging-Out-from-Qliksense-using-Enigma-in-Browser/m-p/1564249#M10273</link>
    <description>&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;I am creating a front end (browser) application using&amp;nbsp; vue.js and enigma.js.&lt;/P&gt;&lt;P&gt;I connect to QlikSense server using enigma configuration and then authenticate by redirecting to QlikSense login page and back to my app. I do this with session notification event&lt;/P&gt;&lt;PRE&gt;session.&lt;SPAN&gt;on&lt;/SPAN&gt;(&lt;SPAN&gt;'notification:*'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;(event&lt;SPAN&gt;, &lt;/SPAN&gt;data) =&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;    console.&lt;SPAN&gt;log&lt;/SPAN&gt;(event&lt;SPAN&gt;, &lt;/SPAN&gt;data)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;switch &lt;/SPAN&gt;(event) {&lt;BR /&gt;        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;'OnAuthenticationInformation'&lt;/SPAN&gt;:&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;(data.mustAuthenticate) {&lt;BR /&gt;                window.&lt;SPAN&gt;location&lt;/SPAN&gt;.&lt;SPAN&gt;href &lt;/SPAN&gt;= data.loginUri&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;            &lt;SPAN&gt;break&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;default&lt;/SPAN&gt;:&lt;BR /&gt;            console.&lt;SPAN&gt;log&lt;/SPAN&gt;(event&lt;SPAN&gt;, &lt;/SPAN&gt;data)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I store logoutUri value, which value is like wss://[server]/qps/user&lt;/P&gt;&lt;P&gt;Everything works fine and I can retrieve data using list or hyper cube objects.&lt;/P&gt;&lt;P&gt;What I can't find is how to log out from the session. Even if I close the enigma session it still logs me in automatically when I refresh the browser.&lt;/P&gt;&lt;P&gt;I found that there is QPS API I can use to delete (log out) the user. I tried to send a DELETE request to https://[server]/qps/user (with body and without), but still session remains.&lt;/P&gt;&lt;P&gt;&lt;A title="Delete user" href="https://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Proxy_Service_API/Content/QPS%20API/Proxy_REST_API_Proxy_REST_API_Logout_Delete_User.htm" target="_blank" rel="noopener"&gt;Delete user&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have my research done, but still unable&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 04:00:05 GMT</pubDate>
    <dc:creator>d_pranskus</dc:creator>
    <dc:date>2019-04-03T04:00:05Z</dc:date>
    <item>
      <title>Logging Out from Qliksense using Enigma in Browser</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Logging-Out-from-Qliksense-using-Enigma-in-Browser/m-p/1564249#M10273</link>
      <description>&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;I am creating a front end (browser) application using&amp;nbsp; vue.js and enigma.js.&lt;/P&gt;&lt;P&gt;I connect to QlikSense server using enigma configuration and then authenticate by redirecting to QlikSense login page and back to my app. I do this with session notification event&lt;/P&gt;&lt;PRE&gt;session.&lt;SPAN&gt;on&lt;/SPAN&gt;(&lt;SPAN&gt;'notification:*'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;(event&lt;SPAN&gt;, &lt;/SPAN&gt;data) =&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;    console.&lt;SPAN&gt;log&lt;/SPAN&gt;(event&lt;SPAN&gt;, &lt;/SPAN&gt;data)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;switch &lt;/SPAN&gt;(event) {&lt;BR /&gt;        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;'OnAuthenticationInformation'&lt;/SPAN&gt;:&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;(data.mustAuthenticate) {&lt;BR /&gt;                window.&lt;SPAN&gt;location&lt;/SPAN&gt;.&lt;SPAN&gt;href &lt;/SPAN&gt;= data.loginUri&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;            &lt;SPAN&gt;break&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;default&lt;/SPAN&gt;:&lt;BR /&gt;            console.&lt;SPAN&gt;log&lt;/SPAN&gt;(event&lt;SPAN&gt;, &lt;/SPAN&gt;data)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I store logoutUri value, which value is like wss://[server]/qps/user&lt;/P&gt;&lt;P&gt;Everything works fine and I can retrieve data using list or hyper cube objects.&lt;/P&gt;&lt;P&gt;What I can't find is how to log out from the session. Even if I close the enigma session it still logs me in automatically when I refresh the browser.&lt;/P&gt;&lt;P&gt;I found that there is QPS API I can use to delete (log out) the user. I tried to send a DELETE request to https://[server]/qps/user (with body and without), but still session remains.&lt;/P&gt;&lt;P&gt;&lt;A title="Delete user" href="https://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Proxy_Service_API/Content/QPS%20API/Proxy_REST_API_Proxy_REST_API_Logout_Delete_User.htm" target="_blank" rel="noopener"&gt;Delete user&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have my research done, but still unable&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 04:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Logging-Out-from-Qliksense-using-Enigma-in-Browser/m-p/1564249#M10273</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2019-04-03T04:00:05Z</dc:date>
    </item>
  </channel>
</rss>

