<?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 Aad or Embed Token in javascript in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Aad-or-Embed-Token-in-javascript/m-p/3207950#M42384</link>
    <description>&lt;P&gt;Hello everyone! I developed an application in REACT in which I make an embedded report and I need to solve the issue of the token either Aad (azure active directory) or Embed so that the duration of the same is long or to refresh the token without the need to embed it manually.&lt;BR /&gt;I visited this microsoft page which tells you how to refresh the token but in one part it asks you to add the function to get the token which is what I would be needing.&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/es-es/javascript/api/overview/powerbi/refresh-token" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/es-es/javascript/api/overview/powerbi/refresh-token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Translated with &lt;A href="http://www.DeepL.com/Translator" target="_blank" rel="noopener"&gt;www.DeepL.com/Translator&lt;/A&gt; (free version)&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 20:41:53 GMT</pubDate>
    <dc:creator>lbarone</dc:creator>
    <dc:date>2023-04-26T20:41:53Z</dc:date>
    <item>
      <title>Aad or Embed Token in javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Aad-or-Embed-Token-in-javascript/m-p/3207950#M42384</link>
      <description>&lt;P&gt;Hello everyone! I developed an application in REACT in which I make an embedded report and I need to solve the issue of the token either Aad (azure active directory) or Embed so that the duration of the same is long or to refresh the token without the need to embed it manually.&lt;BR /&gt;I visited this microsoft page which tells you how to refresh the token but in one part it asks you to add the function to get the token which is what I would be needing.&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/es-es/javascript/api/overview/powerbi/refresh-token" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/es-es/javascript/api/overview/powerbi/refresh-token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Translated with &lt;A href="http://www.DeepL.com/Translator" target="_blank" rel="noopener"&gt;www.DeepL.com/Translator&lt;/A&gt; (free version)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 20:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Aad-or-Embed-Token-in-javascript/m-p/3207950#M42384</guid>
      <dc:creator>lbarone</dc:creator>
      <dc:date>2023-04-26T20:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aad or Embed Token in javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Aad-or-Embed-Token-in-javascript/m-p/3210917#M42428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/552112"&gt;@lbarone&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Embed token has its lifetime and it will expire after out of its lifetime.&lt;/P&gt;
&lt;P&gt;You may refer to below blogs to learn how to generate embed token and how to extend the token lifetime.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token" target="_self"&gt;Embed Token - Generate Token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Access-token-setting-expiration-times/td-p/215696" target="_self"&gt;Access token setting expiration times&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes#example-token-lifetime-policies" target="_blank" rel="nofollow noopener noreferrer"&gt;Configurable token lifetimes in the Microsoft identity platform (preview)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to automatically refresh token, you can learn this blog.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/refresh-token#automatically-refresh-token" target="_blank"&gt;https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/refresh-token#automatically-refresh-token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 09:36:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Aad-or-Embed-Token-in-javascript/m-p/3210917#M42428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-28T09:36:08Z</dc:date>
    </item>
  </channel>
</rss>

