<?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: Virtual Proxy Auth with nginx in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Virtual-Proxy-Auth-with-nginx/m-p/1758605#M13486</link>
    <description>&lt;P&gt;Here is the QMC screenshot, the forum seems to delete it in the first post when I post it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qmc.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43546iE57B338E9B0439D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="qmc.png" alt="qmc.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 19:12:54 GMT</pubDate>
    <dc:creator>david_kesselhei</dc:creator>
    <dc:date>2020-11-04T19:12:54Z</dc:date>
    <item>
      <title>Virtual Proxy Auth with nginx</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Virtual-Proxy-Auth-with-nginx/m-p/1758602#M13485</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to give out an URL to one of our apps so that it can be viewed from a browser on a TV without logging in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set up a virtual proxy in Qlik and installed nginx as a reverse proxy append the header:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;server {
        listen 80 default_server;
        listen 443 ssl;
        root /config/www;
        index index.html index.htm index.php;
        server_name _;
        ssl_certificate /config/keys/cert.crt;
        ssl_certificate_key /config/keys/cert.key;
        client_max_body_size 0;
        location / {
                try_files $uri $uri/ /index.html /index.php?$args =404;
        }
        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                include /etc/nginx/fastcgi_params;

        }
location /bio {
    access_log /config/log/nginx/upstream.log upstreamlog;
    resolver 127.0.0.11 valid=30s;
    proxy_set_header hdr-sense myuser;
    proxy_pass http://myqlikserver/biomaze/hub;

}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When connecting to the reverse proxy I get&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HTTP 401&amp;nbsp;not authorized&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp;It works when I use a browser extension (as mentioned &lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Qlik-Sense-Header-Authentication-401-Error/tac-p/1758179#M994" target="_self"&gt;here&lt;/A&gt;) that sends the header on every request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is a screenshot of the setup in QMC:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;[28/Oct/2020:15:24:03 +0100] 172.30.82.132 - - - _ to: 172.20.7.4:443: GET /bio HTTP/1.1 upstream_response_time 0.011 msec 1603895043.855 request_time 0.011&lt;BR /&gt;[28/Oct/2020:15:26:04 +0100] 172.30.82.11 - - - _ to: 172.20.7.4:443: GET /bio HTTP/1.1 upstream_response_time 0.015 msec 1603895164.895 request_time 0.048&lt;BR /&gt;[28/Oct/2020:15:26:26 +0100] 172.30.82.11 - - - _ to: 172.20.7.4:443: GET /bio HTTP/1.1 upstream_response_time 0.010 msec 1603895186.612 request_time 0.010&lt;BR /&gt;[28/Oct/2020:15:27:02 +0100] 172.30.82.11 - - - _ to: 172.20.7.4:80: GET /bio HTTP/1.1 upstream_response_time 0.012 msec 1603895222.228 request_time 0.012&lt;BR /&gt;[28/Oct/2020:15:27:19 +0100] 172.30.82.132 - - - _ to: 172.20.7.4:80: GET /bio HTTP/1.1 upstream_response_time 0.011 msec 1603895239.602 request_time 0.012&lt;BR /&gt;[28/Oct/2020:16:09:50 +0100] 172.31.241.106 - - - _ to: 172.20.7.4:80: GET /bio HTTP/1.1 upstream_response_time 0.013 msec 1603897790.015 request_time 0.012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to get the corresponding Qlik log, please let me know if you do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to set this up so that no login/extensions are required from the user side?&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Virtual-Proxy-Auth-with-nginx/m-p/1758602#M13485</guid>
      <dc:creator>david_kesselhei</dc:creator>
      <dc:date>2024-11-16T17:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Proxy Auth with nginx</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Virtual-Proxy-Auth-with-nginx/m-p/1758605#M13486</link>
      <description>&lt;P&gt;Here is the QMC screenshot, the forum seems to delete it in the first post when I post it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qmc.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43546iE57B338E9B0439D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="qmc.png" alt="qmc.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 19:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Virtual-Proxy-Auth-with-nginx/m-p/1758605#M13486</guid>
      <dc:creator>david_kesselhei</dc:creator>
      <dc:date>2020-11-04T19:12:54Z</dc:date>
    </item>
  </channel>
</rss>

