<?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 Issue With OAuth Embed: /api/v1/users/me Returns 301 → “Connection Lost” Error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-With-OAuth-Embed-api-v1-users-me-Returns-301-Connection/m-p/2537008#M22631</link>
    <description>&lt;H1 data-start="184" data-end="285"&gt;&lt;FONT size="4"&gt;Issue With OAuth Embed: &lt;CODE data-start="227" data-end="245"&gt;/api/v1/users/me&lt;/CODE&gt; Returns 301 → “Connection Lost” Error&lt;/FONT&gt;&lt;/H1&gt;
&lt;P data-start="287" data-end="480"&gt;We are embedding a Qlik Sense dashboard using the &lt;CODE data-start="337" data-end="351"&gt;&amp;lt;qlik-embed&amp;gt;&lt;/CODE&gt; web component and authenticating via OAuth.&lt;BR data-start="395" data-end="398" /&gt;The OAuth flow works correctly, and we are able to retrieve the access token from:&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre!"&gt;&lt;SPAN&gt;POST /oauth/token&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="509" data-end="666"&gt;However, when the embedded dashboard loads, we consistently receive the &lt;STRONG data-start="581" data-end="649"&gt;“Connection lost. Make sure that Qlik Sense is running properly”&lt;/STRONG&gt; error in the UI.&lt;/P&gt;
&lt;H2 data-start="668" data-end="689"&gt;&lt;FONT size="4"&gt;Issue Observed&lt;/FONT&gt;&lt;/H2&gt;
&lt;P data-start="690" data-end="734"&gt;In the browser network logs, the request to:&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre!"&gt;&lt;SPAN&gt;GET /api/v1/users/me&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="766" data-end="816"&gt;returns &lt;STRONG data-start="774" data-end="799"&gt;301 Moved Permanently&lt;/STRONG&gt;, instead of 200.&lt;/P&gt;
&lt;P data-start="818" data-end="929"&gt;Because of the redirect, the Qlik embed client fails to establish the session, and the dashboard does not load.&lt;/P&gt;
&lt;H3 data-start="931" data-end="946"&gt;&lt;FONT size="4"&gt;Details&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL data-start="947" data-end="1346"&gt;
&lt;LI data-start="947" data-end="979"&gt;
&lt;P data-start="949" data-end="979"&gt;OAuth is configured correctly.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="980" data-end="1016"&gt;
&lt;P data-start="982" data-end="1016"&gt;The app ID and sheet ID are valid.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1017" data-end="1070"&gt;
&lt;P data-start="1019" data-end="1070"&gt;The dashboard is shared with the appropriate space.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1071" data-end="1102"&gt;
&lt;P data-start="1073" data-end="1102"&gt;The user exists in the space.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1103" data-end="1152"&gt;
&lt;P data-start="1105" data-end="1152"&gt;Allowed Origins are configured in OAuth Client.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1153" data-end="1200"&gt;
&lt;P data-start="1155" data-end="1200"&gt;Our domain is added to CSP → Trusted Origins.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1201" data-end="1262"&gt;
&lt;P data-start="1203" data-end="1262"&gt;The only failing call is &lt;CODE data-start="1228" data-end="1246"&gt;/api/v1/users/me&lt;/CODE&gt;, returning 301.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1263" data-end="1291"&gt;
&lt;P data-start="1265" data-end="1291"&gt;No mixed HTTP/HTTPS calls.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1292" data-end="1346"&gt;
&lt;P data-start="1294" data-end="1346"&gt;Using the &lt;CODE data-start="1304" data-end="1335"&gt;&amp;lt;qlik-embed ui="classic/app"&amp;gt;&lt;/CODE&gt; component.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-start="1348" data-end="1377"&gt;Questions for Support&lt;/H3&gt;
&lt;OL data-start="1378" data-end="2207"&gt;
&lt;LI data-start="1378" data-end="1545"&gt;
&lt;P data-start="1381" data-end="1545"&gt;What conditions cause &lt;CODE data-start="1405" data-end="1423"&gt;/api/v1/users/me&lt;/CODE&gt; to return a 301 redirect during OAuth-based embedding?&lt;BR data-start="1480" data-end="1483" /&gt;Is this expected behavior in certain tenant configurations?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1547" data-end="1737"&gt;
&lt;P data-start="1550" data-end="1737"&gt;Does the recent Qlik Cloud identity/authentication update (referenced in the changelog) introduce stricter redirect behavior or URL canonicalization that would impact OAuth embedding?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1739" data-end="1915"&gt;
&lt;P data-start="1742" data-end="1915"&gt;Is there a requirement that the tenant must be accessed using the exact canonical region-based domain for OAuth embeds to work (e.g., &lt;CODE data-start="1878" data-end="1911"&gt;&amp;lt;tenant&amp;gt;.&amp;lt;region&amp;gt;.qlikcloud.com&lt;/CODE&gt;)?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1917" data-end="2063"&gt;
&lt;P data-start="1920" data-end="2063"&gt;Is there any known issue where the Identity Provider or CSP configuration can trigger an unexpected redirect from the &lt;CODE data-start="2040" data-end="2051"&gt;/users/me&lt;/CODE&gt; endpoint?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="2065" data-end="2207"&gt;
&lt;P data-start="2068" data-end="2207"&gt;What is the recommended approach to prevent or handle this redirect so that the embed component can successfully establish the session?&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3 data-start="2209" data-end="2244"&gt;&lt;FONT size="4"&gt;Attached Logs / Screenshots&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL data-start="2245" data-end="2346"&gt;
&lt;LI data-start="2245" data-end="2301"&gt;
&lt;P data-start="2247" data-end="2301"&gt;Screenshot of the 301 response for &lt;CODE data-start="2282" data-end="2300"&gt;/api/v1/users/me&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="2302" data-end="2346"&gt;
&lt;P data-start="2304" data-end="2346"&gt;Screenshot of the “Connection lost” error.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (27).png" style="width: 769px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185201i595FF3F1273530DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (27).png" alt="image (27).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (26).png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185200iD9C0C1C8FF8B4648/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (26).png" alt="image (26).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 24 Nov 2025 07:50:37 GMT</pubDate>
    <dc:creator>HimabinduBunga</dc:creator>
    <dc:date>2025-11-24T07:50:37Z</dc:date>
    <item>
      <title>Issue With OAuth Embed: /api/v1/users/me Returns 301 → “Connection Lost” Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-With-OAuth-Embed-api-v1-users-me-Returns-301-Connection/m-p/2537008#M22631</link>
      <description>&lt;H1 data-start="184" data-end="285"&gt;&lt;FONT size="4"&gt;Issue With OAuth Embed: &lt;CODE data-start="227" data-end="245"&gt;/api/v1/users/me&lt;/CODE&gt; Returns 301 → “Connection Lost” Error&lt;/FONT&gt;&lt;/H1&gt;
&lt;P data-start="287" data-end="480"&gt;We are embedding a Qlik Sense dashboard using the &lt;CODE data-start="337" data-end="351"&gt;&amp;lt;qlik-embed&amp;gt;&lt;/CODE&gt; web component and authenticating via OAuth.&lt;BR data-start="395" data-end="398" /&gt;The OAuth flow works correctly, and we are able to retrieve the access token from:&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre!"&gt;&lt;SPAN&gt;POST /oauth/token&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="509" data-end="666"&gt;However, when the embedded dashboard loads, we consistently receive the &lt;STRONG data-start="581" data-end="649"&gt;“Connection lost. Make sure that Qlik Sense is running properly”&lt;/STRONG&gt; error in the UI.&lt;/P&gt;
&lt;H2 data-start="668" data-end="689"&gt;&lt;FONT size="4"&gt;Issue Observed&lt;/FONT&gt;&lt;/H2&gt;
&lt;P data-start="690" data-end="734"&gt;In the browser network logs, the request to:&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre!"&gt;&lt;SPAN&gt;GET /api/v1/users/me&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="766" data-end="816"&gt;returns &lt;STRONG data-start="774" data-end="799"&gt;301 Moved Permanently&lt;/STRONG&gt;, instead of 200.&lt;/P&gt;
&lt;P data-start="818" data-end="929"&gt;Because of the redirect, the Qlik embed client fails to establish the session, and the dashboard does not load.&lt;/P&gt;
&lt;H3 data-start="931" data-end="946"&gt;&lt;FONT size="4"&gt;Details&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL data-start="947" data-end="1346"&gt;
&lt;LI data-start="947" data-end="979"&gt;
&lt;P data-start="949" data-end="979"&gt;OAuth is configured correctly.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="980" data-end="1016"&gt;
&lt;P data-start="982" data-end="1016"&gt;The app ID and sheet ID are valid.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1017" data-end="1070"&gt;
&lt;P data-start="1019" data-end="1070"&gt;The dashboard is shared with the appropriate space.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1071" data-end="1102"&gt;
&lt;P data-start="1073" data-end="1102"&gt;The user exists in the space.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1103" data-end="1152"&gt;
&lt;P data-start="1105" data-end="1152"&gt;Allowed Origins are configured in OAuth Client.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1153" data-end="1200"&gt;
&lt;P data-start="1155" data-end="1200"&gt;Our domain is added to CSP → Trusted Origins.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1201" data-end="1262"&gt;
&lt;P data-start="1203" data-end="1262"&gt;The only failing call is &lt;CODE data-start="1228" data-end="1246"&gt;/api/v1/users/me&lt;/CODE&gt;, returning 301.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1263" data-end="1291"&gt;
&lt;P data-start="1265" data-end="1291"&gt;No mixed HTTP/HTTPS calls.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1292" data-end="1346"&gt;
&lt;P data-start="1294" data-end="1346"&gt;Using the &lt;CODE data-start="1304" data-end="1335"&gt;&amp;lt;qlik-embed ui="classic/app"&amp;gt;&lt;/CODE&gt; component.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-start="1348" data-end="1377"&gt;Questions for Support&lt;/H3&gt;
&lt;OL data-start="1378" data-end="2207"&gt;
&lt;LI data-start="1378" data-end="1545"&gt;
&lt;P data-start="1381" data-end="1545"&gt;What conditions cause &lt;CODE data-start="1405" data-end="1423"&gt;/api/v1/users/me&lt;/CODE&gt; to return a 301 redirect during OAuth-based embedding?&lt;BR data-start="1480" data-end="1483" /&gt;Is this expected behavior in certain tenant configurations?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1547" data-end="1737"&gt;
&lt;P data-start="1550" data-end="1737"&gt;Does the recent Qlik Cloud identity/authentication update (referenced in the changelog) introduce stricter redirect behavior or URL canonicalization that would impact OAuth embedding?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1739" data-end="1915"&gt;
&lt;P data-start="1742" data-end="1915"&gt;Is there a requirement that the tenant must be accessed using the exact canonical region-based domain for OAuth embeds to work (e.g., &lt;CODE data-start="1878" data-end="1911"&gt;&amp;lt;tenant&amp;gt;.&amp;lt;region&amp;gt;.qlikcloud.com&lt;/CODE&gt;)?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1917" data-end="2063"&gt;
&lt;P data-start="1920" data-end="2063"&gt;Is there any known issue where the Identity Provider or CSP configuration can trigger an unexpected redirect from the &lt;CODE data-start="2040" data-end="2051"&gt;/users/me&lt;/CODE&gt; endpoint?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="2065" data-end="2207"&gt;
&lt;P data-start="2068" data-end="2207"&gt;What is the recommended approach to prevent or handle this redirect so that the embed component can successfully establish the session?&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3 data-start="2209" data-end="2244"&gt;&lt;FONT size="4"&gt;Attached Logs / Screenshots&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL data-start="2245" data-end="2346"&gt;
&lt;LI data-start="2245" data-end="2301"&gt;
&lt;P data-start="2247" data-end="2301"&gt;Screenshot of the 301 response for &lt;CODE data-start="2282" data-end="2300"&gt;/api/v1/users/me&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="2302" data-end="2346"&gt;
&lt;P data-start="2304" data-end="2346"&gt;Screenshot of the “Connection lost” error.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (27).png" style="width: 769px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185201i595FF3F1273530DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (27).png" alt="image (27).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (26).png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185200iD9C0C1C8FF8B4648/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (26).png" alt="image (26).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 24 Nov 2025 07:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-With-OAuth-Embed-api-v1-users-me-Returns-301-Connection/m-p/2537008#M22631</guid>
      <dc:creator>HimabinduBunga</dc:creator>
      <dc:date>2025-11-24T07:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue With OAuth Embed: /api/v1/users/me Returns 301 → “Connection Lost” Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-With-OAuth-Embed-api-v1-users-me-Returns-301-Connection/m-p/2537442#M22642</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/356533"&gt;@HimabinduBunga&lt;/a&gt;&amp;nbsp;301 response code is not the root cause of the issue. I've just tested a qlik-embed + Oauth process and that API call is part of the authorization process. There is a redirection behind that API so it is ok from my point of view.&lt;BR /&gt;I'd like to see your code where you are defining the qlik-embed host config configuration, your callback html page and your qlik-embed html tag, plus your OAuth client configuration from MC. Can you please share this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 16:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-With-OAuth-Embed-api-v1-users-me-Returns-301-Connection/m-p/2537442#M22642</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-11-27T16:20:08Z</dc:date>
    </item>
  </channel>
</rss>

