<?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: OAuth0 M2M And Qlik Embed in Angular Application in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2467097#M20838</link>
    <description>&lt;P&gt;Is that failing on the api/v1/users/me call? Which scopes do you have assigned to the OAuth client used to generate the impersonation token, and which scopes did you pass when requesting it (did you include&amp;nbsp;user_default)?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 08:25:08 GMT</pubDate>
    <dc:creator>Dave_Channon</dc:creator>
    <dc:date>2024-07-02T08:25:08Z</dc:date>
    <item>
      <title>OAuth0 M2M And Qlik Embed in Angular Application</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2466512#M20828</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Following this example &lt;A href="https://github.com/qlik-oss/qlik-cloud-embed-oauth-impersonation" target="_new" rel="noreferrer"&gt;https://github.com/qlik-oss/qlik-cloud-embed-oauth-impersonation&lt;/A&gt;, I'm trying to authenticate and use Qlik-embed sheets in my Angular application.&lt;/P&gt;
&lt;P&gt;I created a Node.js backend application that correctly returns the token. When I get the token, I rewrite the header to import the Qlik-embed-components JavaScript file.&lt;/P&gt;
&lt;P&gt;After doing that, I update the Qlik-embed parameters to obtain the Qlik sheet, but unfortunately, I get a blank page.&lt;/P&gt;
&lt;P&gt;Inspecting the HTML result page, I can see that the iframe is imported, but there are several 401 errors from gmfe-api.js calls and there isn’t any websocket. Maybe I'm doing something wrong, but I can't understand what.&lt;/P&gt;
&lt;P&gt;Has anyone else had the same issue?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cristian_dalsanto_0-1719597962901.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168644i2B63BC15CE083005/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cristian_dalsanto_0-1719597962901.png" alt="cristian_dalsanto_0-1719597962901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let me know if there are any other details you would like to include or if you need further adjustments.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cristian&lt;/SPAN&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 18:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2466512#M20828</guid>
      <dc:creator>cristian_dalsanto</dc:creator>
      <dc:date>2024-06-28T18:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth0 M2M And Qlik Embed in Angular Application</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2467097#M20838</link>
      <description>&lt;P&gt;Is that failing on the api/v1/users/me call? Which scopes do you have assigned to the OAuth client used to generate the impersonation token, and which scopes did you pass when requesting it (did you include&amp;nbsp;user_default)?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 08:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2467097#M20838</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-07-02T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth0 M2M And Qlik Embed in Angular Application</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2467491#M20841</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/81045"&gt;@cristian_dalsanto&lt;/a&gt;&lt;/SPAN&gt; are you running your front end app in http? When I run it with http I have 401 errors, switching to https it works. Any communications to Qlik SaaS should be always in https.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1870"&gt;@Dave_Channon&lt;/a&gt;&lt;/SPAN&gt; I've modified the server.js file for running it over https and this solve the issue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// Start the server
// Read SSL certificate and key files
const options = {
  key: fs.readFileSync(path.join(__dirname, "/certs", "localhost-key.pem")),
  cert: fs.readFileSync(path.join(__dirname, "/certs", "localhost.pem")),
};
// Create HTTPS server
const server = https.createServer(options, app);

server.listen(PORT, () =&amp;gt; {
  console.log(
    `Server is listening on port ${PORT}! Go to https://localhost:${PORT}`
  );
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 08:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2467491#M20841</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2024-07-03T08:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth0 M2M And Qlik Embed in Angular Application</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2470604#M20913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1870"&gt;@Dave_Channon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the support and sorry for the late reply.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The problem was related to the use of property binding. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Replacing the app-id and sheet-id properties of the qlik-embed component from TypeScript is not correct. Probably, the qlik-embed component sends requests to the server even if the properties are not set. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, I changed my approach and, instead of using property binding, I write the entire component directly from TypeScript and append it to the div present in the view, and it seems to be working.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; const qlikEmbed = this.renderer.createElement('qlik-embed');
          this.renderer.setAttribute(qlikEmbed, 'ui', 'classic/app');
          this.renderer.setAttribute(qlikEmbed, 'app-id', environment.PAQlikAppID);
          this.renderer.setAttribute(qlikEmbed, 'sheet-id', this.sheetId);
          this.renderer.setAttribute(qlikEmbed, 'theme', 'my-theme');
          this.renderer.appendChild(sheetDiv, qlikEmbed);&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;</description>
      <pubDate>Mon, 15 Jul 2024 08:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2470604#M20913</guid>
      <dc:creator>cristian_dalsanto</dc:creator>
      <dc:date>2024-07-15T08:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth0 M2M And Qlik Embed in Angular Application</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2470784#M20924</link>
      <description>&lt;P&gt;Good plan, that's how I typically do it too. I will document that as it is in&amp;nbsp;&lt;A href="https://replit.com/@withdave/qlik-embed-auto-objects" target="_blank"&gt;https://replit.com/@withdave/qlik-embed-auto-objects&lt;/A&gt;&amp;nbsp;when I get a chance on qlik.dev!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 19:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/OAuth0-M2M-And-Qlik-Embed-in-Angular-Application/m-p/2470784#M20924</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-07-15T19:12:31Z</dc:date>
    </item>
  </channel>
</rss>

