<?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: Extension not available with virtual proxy (header auth) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872663#M16045</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33434"&gt;@pasi_lehtinen&lt;/a&gt;&amp;nbsp;You should just need to inject the&amp;nbsp;&lt;SPAN&gt;hdr-usr header.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do not modify the other headers as it may cause some functionality to fail.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 13:12:04 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-12-17T13:12:04Z</dc:date>
    <item>
      <title>Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872048#M16037</link>
      <description>&lt;P&gt;I am having troubles with accessing extensions when I am accessing Qlik Sense via a virtual proxy which is using header authentication.&lt;/P&gt;
&lt;P&gt;I first noticed this when using a mashup which is trying to embed qlik extensions into the page. In the console log I can see the following error (403 Forbidden):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pasi_lehtinen_1-1639662493436.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68725iCB6A2EC624E8DD48/image-size/large?v=v2&amp;amp;px=999" role="button" title="pasi_lehtinen_1-1639662493436.png" alt="pasi_lehtinen_1-1639662493436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From the error message I can see that the &lt;STRONG&gt;xrfkey&lt;/STRONG&gt; of the GET request differs from the one which is used in the initial header authentication.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the settings from QMC (virtual proxy):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pasi_lehtinen_3-1639663027310.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68727i28F8A71FF1AB3080/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pasi_lehtinen_3-1639663027310.png" alt="pasi_lehtinen_3-1639663027310.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume that &lt;STRONG&gt;xrfkey&lt;/STRONG&gt; is causing XSFR check failure, but I am not sure how to fix it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the actual authentication we are defining the X-Qlik-Xrfkey and other headers as supposed. The authentication is working properly. For some reason our mashup is using different &lt;STRONG&gt;xrfkey&lt;/STRONG&gt; when trying to access extensions via qrs API.&lt;/P&gt;
&lt;P&gt;Any ideas how to fix the issue?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;here is the screenshot of the object from the hub (when using the same virtual proxy and header authentication):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pasi_lehtinen_0-1639663306976.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68729iDE3A8F90814EE238/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pasi_lehtinen_0-1639663306976.png" alt="pasi_lehtinen_0-1639663306976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872048#M16037</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2021-12-16T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872455#M16038</link>
      <description>&lt;P&gt;The call /qrs/extension/schema is the one used to list available extensions. Does the call include your virtual proxy?? If not check that you include the virtual proxy in your require config.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 06:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872455#M16038</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2021-12-17T06:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872483#M16039</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;Yes, the call includes the virtual proxy. I also checked the mashup require config. Here is a screenshot of the configurations (&amp;nbsp;&lt;EM&gt;require.config is generated with a dynamic references )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pasi_lehtinen_0-1639727280757.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68812iEEFFFC92E32A2C3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pasi_lehtinen_0-1639727280757.png" alt="pasi_lehtinen_0-1639727280757.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 07:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872483#M16039</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2021-12-17T07:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872497#M16040</link>
      <description>&lt;P&gt;By the way, the same mashup works perfectly in our other environment which is using SAML authentication instead of header authentication.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 08:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872497#M16040</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2021-12-17T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872518#M16041</link>
      <description>&lt;P&gt;I tested&amp;nbsp;t&lt;SPAN&gt;he call to .../qrs/extension/schema with postman simultaneously while having a session open (in my browser). The strange this is that my request works as long as I pass the same xrfkey as query parameter as I have in my open session (in browser). As soon as I change the xrfkey, I get error:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;FONT color="#FF0000"&gt;XSRF&amp;nbsp;prevention&amp;nbsp;check&amp;nbsp;failed.&amp;nbsp;Possible&amp;nbsp;XSRF&amp;nbsp;discovered&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here is also the screenshot from the postman:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pasi_lehtinen_0-1639730966748.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68816i7CB1F253CAE9F63E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pasi_lehtinen_0-1639730966748.png" alt="pasi_lehtinen_0-1639730966748.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Seems like I need to some how handle the xrfkey when my mashup is trying to access the extensions, but unfortunately the xrfkey is outside of my control?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 08:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872518#M16041</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2021-12-17T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872644#M16042</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33434"&gt;@pasi_lehtinen&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29425"&gt;@Damien_V&lt;/a&gt;&amp;nbsp;may can assist here.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 12:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872644#M16042</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-12-17T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872655#M16043</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33434"&gt;@pasi_lehtinen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I understanding correctly here that you are overwritten the x-qlik-xrfkey header with your own value ?&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;In the actual authentication we are defining the X-Qlik-Xrfkey and other headers as supposed."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The xrfkey / x-qlik-xrfkey are generated automatically by Qlik Sense and shouldn't be overwritten.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The only time you need to set the xrfkey / x-qlik-xrfkey is when you are calling the Qlik APIs from your code, which is not the case here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 12:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872655#M16043</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-12-17T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872662#M16044</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29425"&gt;@Damien_V&lt;/a&gt;&amp;nbsp;for your response. Okey, I understand.&lt;/P&gt;
&lt;P&gt;Are you able to explain further how the header authentication should be configured? We have set up the environment with virtual proxy which is utilizing header authentication.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Should I just leave the xrfkey away when redirecting users into the mashup? So the URL would not include any query parameter and also I would leave the X-Qlik-xrfkey way?&lt;/LI&gt;
&lt;LI&gt;Should I still apply other headers (hdr-usr &amp;amp; Content-Type)?&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 13:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872662#M16044</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2021-12-17T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extension not available with virtual proxy (header auth)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872663#M16045</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33434"&gt;@pasi_lehtinen&lt;/a&gt;&amp;nbsp;You should just need to inject the&amp;nbsp;&lt;SPAN&gt;hdr-usr header.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do not modify the other headers as it may cause some functionality to fail.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 13:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-not-available-with-virtual-proxy-header-auth/m-p/1872663#M16045</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-12-17T13:12:04Z</dc:date>
    </item>
  </channel>
</rss>

