<?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 What setup differences are there between an oauth2 embedding and oauth2 impersonation? And how do I know it is working? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/What-setup-differences-are-there-between-an-oauth2-embedding-and/m-p/2452072#M20557</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/embed/qlik-embed/authenticate/connect-qlik-embed/#using-oauth-clients" target="_self"&gt;This&lt;/A&gt; example describes the oauth2 setup for embedding. My understanding is that one also need to set up and configure an &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-create-idp-configuration.htm" target="_self"&gt;identity provider&lt;/A&gt;&amp;nbsp;to get it to work.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/examples/authenticate-examples/oauth-m2m-impersonation/" target="_self"&gt;This&lt;/A&gt; example describes impersonation setup for embedding. Using a modified version that fits my needs, I get an "Authorize" button as expected in the oauth2 case since it doesn't seem to use or look at the "getAccessToken" function to get the available access token. Instead it sends cookies to try to verify that the user is logged in.&lt;BR /&gt;Have I made any setup misstakes?&lt;BR /&gt;Do I need to set up an Identity provider in the impersonation case as well?&lt;BR /&gt;&lt;BR /&gt;In the impersonation example the token is supposed to come from the getAccessToken function. Is there a way to determine that that one is set up correctly? At the moment it doesn't seem to be triggered for me.&lt;BR /&gt;Is there a fallback on the impersonation so that it will try to use the normal oauth approach?&lt;/P&gt;
&lt;P&gt;Kind regards&lt;BR /&gt;Johan&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 11:35:06 GMT</pubDate>
    <dc:creator>_Johan</dc:creator>
    <dc:date>2024-05-15T11:35:06Z</dc:date>
    <item>
      <title>What setup differences are there between an oauth2 embedding and oauth2 impersonation? And how do I know it is working?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/What-setup-differences-are-there-between-an-oauth2-embedding-and/m-p/2452072#M20557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/embed/qlik-embed/authenticate/connect-qlik-embed/#using-oauth-clients" target="_self"&gt;This&lt;/A&gt; example describes the oauth2 setup for embedding. My understanding is that one also need to set up and configure an &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-create-idp-configuration.htm" target="_self"&gt;identity provider&lt;/A&gt;&amp;nbsp;to get it to work.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/examples/authenticate-examples/oauth-m2m-impersonation/" target="_self"&gt;This&lt;/A&gt; example describes impersonation setup for embedding. Using a modified version that fits my needs, I get an "Authorize" button as expected in the oauth2 case since it doesn't seem to use or look at the "getAccessToken" function to get the available access token. Instead it sends cookies to try to verify that the user is logged in.&lt;BR /&gt;Have I made any setup misstakes?&lt;BR /&gt;Do I need to set up an Identity provider in the impersonation case as well?&lt;BR /&gt;&lt;BR /&gt;In the impersonation example the token is supposed to come from the getAccessToken function. Is there a way to determine that that one is set up correctly? At the moment it doesn't seem to be triggered for me.&lt;BR /&gt;Is there a fallback on the impersonation so that it will try to use the normal oauth approach?&lt;/P&gt;
&lt;P&gt;Kind regards&lt;BR /&gt;Johan&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 11:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/What-setup-differences-are-there-between-an-oauth2-embedding-and/m-p/2452072#M20557</guid>
      <dc:creator>_Johan</dc:creator>
      <dc:date>2024-05-15T11:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: What setup differences are there between an oauth2 embedding and oauth2 impersonation? And how do I know it is working?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/What-setup-differences-are-there-between-an-oauth2-embedding-and/m-p/2454759#M20621</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/257568"&gt;@_Johan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With OAuth SPA, yes, you need an interactive identity provider in your tenant. Your web app will redirect to the tenant, which redirects to the auth, which directs back to the tenant. The user then provides consent (or not if client is trusted) and can access analytics in your app.&lt;/P&gt;
&lt;P&gt;The M2M impersonation approach doesn't need cookies (although they will be set with some embedding techniques). That getAccessToken function retrieves an impersonation token, and qlik-embed handles the interaction with Qlik Cloud. There is no fall back to OAuth SPA.&lt;/P&gt;
&lt;P&gt;Take a look at the flows here and see if it helps describe the patterns:&amp;nbsp;&lt;A href="https://qlik.dev/authenticate/oauth/#how-does-oauth2-work-on-qlik-cloud" target="_blank"&gt;https://qlik.dev/authenticate/oauth/#how-does-oauth2-work-on-qlik-cloud&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/What-setup-differences-are-there-between-an-oauth2-embedding-and/m-p/2454759#M20621</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-05-21T14:29:21Z</dc:date>
    </item>
  </channel>
</rss>

