<?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: Authentication from a Mashup page against a SaaS Qlik Sense account in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970640#M17213</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137741"&gt;@Umbi&lt;/a&gt;&amp;nbsp;Did you manage to solve this? I am having the same problem with /login/jwt-session.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 09:00:14 GMT</pubDate>
    <dc:creator>linnakry</dc:creator>
    <dc:date>2022-08-19T09:00:14Z</dc:date>
    <item>
      <title>Authentication from a Mashup page against a SaaS Qlik Sense account</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1835061#M15566</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to resolve an authentication issue in a Mashup SaaS environment.&lt;/P&gt;&lt;P&gt;The idea is that the WEB Page which includes some objects from a app located in a SaaS Qlik Sense account, should authenticate automatically against Qlik Sense. This should be possible as per following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/Mashups/Content/Sense_Mashups/mashups-authentication-cloud.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/Mashups/Content/Sense_Mashups/mashups-authentication-cloud.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Mashup page works fine if I am logged into SaaS Qlik Sense, but as soon as I log out the mash up page returns the following:&lt;/P&gt;&lt;PRE&gt;{"errors":[{"title":"Illegal returnto value","code":"LOGIN-8","status":"401"}],"traceId":"00000000000000007fd44c6992f8d054"}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if anybody has tried that already?&lt;/P&gt;&lt;P&gt;I &lt;EM&gt;suspect&lt;/EM&gt; the problem is in&lt;A href="https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/Mashups/Content/Sense_Mashups/mashups-authentication-cloud.htm" target="_self"&gt; Qlik Sense help code provided&lt;/A&gt; is where to pass the credentials.&lt;/P&gt;&lt;P&gt;I think that is a very tricky bit which could create security issues.&lt;/P&gt;&lt;P&gt;IAccording to the code in the help:&lt;/P&gt;&lt;P&gt;//Check to see if logged in&lt;BR /&gt;return await fetch(`${urlQlikServer}${urlLoggedIn}`, {&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;credentials: 'include',&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;headers: {&lt;BR /&gt;'Qlik-Web-Integration-ID':webIntegrationId&lt;BR /&gt;}&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;what is 'include' exactly?!&lt;/P&gt;&lt;P&gt;Please help if you have any clue!&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Umberto&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 16:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1835061#M15566</guid>
      <dc:creator>Umbi</dc:creator>
      <dc:date>2021-09-09T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication from a Mashup page against a SaaS Qlik Sense account</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970640#M17213</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137741"&gt;@Umbi&lt;/a&gt;&amp;nbsp;Did you manage to solve this? I am having the same problem with /login/jwt-session.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 09:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970640#M17213</guid>
      <dc:creator>linnakry</dc:creator>
      <dc:date>2022-08-19T09:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication from a Mashup page against a SaaS Qlik Sense account</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970646#M17214</link>
      <description>&lt;LI-CODE lang="markup"&gt;credentials: 'include'&lt;/LI-CODE&gt;
&lt;P&gt;Instructs fetch to send the stored cookies for the request site. More on &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#sending_a_request_with_credentials_included" target="_self"&gt;include option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regarding the issue. Any chance your browser is set to not send third-party cookies?&lt;/P&gt;
&lt;P&gt;Stefan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 09:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970646#M17214</guid>
      <dc:creator>stefanstoichev123</dc:creator>
      <dc:date>2022-08-19T09:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication from a Mashup page against a SaaS Qlik Sense account</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970650#M17215</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/124946"&gt;@stefanstoichev123&lt;/a&gt;&amp;nbsp;: my fetch requests include credentials: 'include' &amp;amp; the browser is set to allow third party cookies too. It seem that require.js was redirecting to&amp;nbsp;window.location but maybe it is missing qlik-web-integration-id? I am not so sure. Below is from require.js.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try {&lt;BR /&gt;const [e,t] = await Promise.all([i().get(`${o.Z.rootPath}api/v1/users/me`), i().get(`${o.Z.rootPath}api/v1/claims/me`)]);&lt;BR /&gt;a = e.data,&lt;BR /&gt;a.roles = [...t.data.roles]&lt;BR /&gt;} catch (t) {&lt;BR /&gt;var e;&lt;BR /&gt;i().isAxiosError(t) &amp;amp;&amp;amp; 401 === (null === (e = t.response) || void 0 === e ? void 0 : e.status) &amp;amp;&amp;amp; window.location.replace(`${o.Z.rootPath}login?returnto=${window.location}`)&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 09:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1970650#M17215</guid>
      <dc:creator>linnakry</dc:creator>
      <dc:date>2022-08-19T09:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication from a Mashup page against a SaaS Qlik Sense account</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1974071#M17253</link>
      <description>&lt;P&gt;The problem was that there was another code requesting require.js just after the user authentication. The user authentication hasn't been finished yet and then require.js runs which causes the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution is to wait until the user authentication is completed before requesting require.js from Qlik.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 07:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Authentication-from-a-Mashup-page-against-a-SaaS-Qlik-Sense/m-p/1974071#M17253</guid>
      <dc:creator>linnakry</dc:creator>
      <dc:date>2022-08-29T07:37:47Z</dc:date>
    </item>
  </channel>
</rss>

