<?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: How to hide embedUrl  and AccessToken from Javascript in  PowerBIEmbedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541098#M16758</link>
    <description>&lt;P&gt;You will not be able to hide those elements because they muist be sent to the browser. The access token and embed url must be sent to the browser because of the core architecture of Power BI embedding which loads Power BI embedded resources&amp;nbsp;using&amp;nbsp;an iFrame.&amp;nbsp; This is something that cannot be done using server-side code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using third-party embedding (app-owns-data), then you should not be sending Azure AD access tokens back to the browser. Instead, you generate embed tokens using the Power BI Service which are far ore constrained because any embed token only works with a single&amp;nbsp;report or dashboard. Compare that to an Azure AD access token which gives a potential&amp;nbsp;attacker&amp;nbsp;a much broader set permissions across the Power BI environment.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Oct 2018 17:36:36 GMT</pubDate>
    <dc:creator>TedPattison</dc:creator>
    <dc:date>2018-10-12T17:36:36Z</dc:date>
    <item>
      <title>How to bypass Power BI JavaScript Library to embed Power BI content</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/539974#M16713</link>
      <description>&lt;P&gt;I am using PowerBI Embeded application and it is working fine. I am using Power BI JavaScript library to embed Power BI content. But this eposes security concern as accessToken ,&amp;nbsp;&lt;SPAN&gt;embedUrl ,&amp;nbsp;embedReportId are exposed.&amp;nbsp; Is their any way i can bypass / secure this content&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 14:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/539974#M16713</guid>
      <dc:creator>sureshrm</dc:creator>
      <dc:date>2018-10-11T14:23:32Z</dc:date>
    </item>
    <item>
      <title>How to hide embedUrl  and AccessToken from Javascript in  PowerBIEmbedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/539761#M16714</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an Application to embed PowerBI reports using App only data. The soultion is working fine and able to render the report. Now the problem is if i select View Source poperty then i can see powerbi javascript code whch exposes some of the key values like&amp;nbsp;embedUrl,&amp;nbsp;embedReportId and&amp;nbsp;accessToken. This is a security risk . How can i pervent this ? Any help would be deeply appriciated.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 11:25:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/539761#M16714</guid>
      <dc:creator>sureshrm</dc:creator>
      <dc:date>2018-10-11T11:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide embedUrl  and AccessToken from Javascript in  PowerBIEmbedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541098#M16758</link>
      <description>&lt;P&gt;You will not be able to hide those elements because they muist be sent to the browser. The access token and embed url must be sent to the browser because of the core architecture of Power BI embedding which loads Power BI embedded resources&amp;nbsp;using&amp;nbsp;an iFrame.&amp;nbsp; This is something that cannot be done using server-side code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using third-party embedding (app-owns-data), then you should not be sending Azure AD access tokens back to the browser. Instead, you generate embed tokens using the Power BI Service which are far ore constrained because any embed token only works with a single&amp;nbsp;report or dashboard. Compare that to an Azure AD access token which gives a potential&amp;nbsp;attacker&amp;nbsp;a much broader set permissions across the Power BI environment.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 17:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541098#M16758</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-12T17:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide embedUrl  and AccessToken from Javascript in  PowerBIEmbedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541435#M16796</link>
      <description>&lt;P&gt;Thanks for the suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to make sure i define my requirement correct [ My requirement&amp;nbsp;is app own data]&lt;/P&gt;&lt;P&gt;1) Used the sample MVC app provided by Microsoft .&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Customized to my requirement . Kept embed token generation logic and removed rest all&lt;/P&gt;&lt;P&gt;3) Use all the scripts&amp;nbsp;provided&amp;nbsp;inside sample application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On&amp;nbsp;execution of&amp;nbsp;application i am getting report embed&amp;nbsp;with view source is showing values of&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) ReportID&lt;/P&gt;&lt;P&gt;2) AccessToken [ Actually it is embed token . In script the variable name is access token]&lt;/P&gt;&lt;P&gt;3) EmbedURL&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;&amp;nbsp;i get your suggestions&amp;nbsp;correctly then&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) These values are must for browser and they are part of&amp;nbsp;PowerBI Embed architecture&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;The exposed values combination [ReprotID , AccessToken, EmbedURL] are for one specific report . So if i change the values of ReportID or&amp;nbsp;EmbedURL then&amp;nbsp;it&amp;nbsp; wont wok .&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;Is it possible to set the life time of embedURL to 'N' minutes&amp;nbsp;? So that user will be forced to use new token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you had suggested&amp;nbsp;to generate&amp;nbsp;&lt;SPAN&gt;generate embed tokens using the Power BI Service&amp;nbsp;. I am not sure what you meant by this . In my application&amp;nbsp;i am using PowerBI REST API. If i am missing any then can you help me with some pointer / link&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot once again.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 17:50:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541435#M16796</guid>
      <dc:creator>sureshrm</dc:creator>
      <dc:date>2018-10-13T17:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide embedUrl  and AccessToken from Javascript in  PowerBIEmbedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541441#M16797</link>
      <description>&lt;P&gt;First of all, we are talking about the same thing using different names. The "thing" is the API endpoint at&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/" target="_blank"&gt;https://api.powerbi.com/v1.0/&lt;/A&gt;. Here are the different names people use for this&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Power BI REST API&lt;/LI&gt;&lt;LI&gt;Power BI API&lt;/LI&gt;&lt;LI&gt;Power BI Service API (the one I like)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to confirm&amp;nbsp;these values are must for browser and they are part of&amp;nbsp;PowerBI Embed architecture&lt;/P&gt;&lt;P&gt;YES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exposed values combination [ReprotID , AccessToken, EmbedURL] are for one specific report . So if i change the values of ReportID or&amp;nbsp;EmbedURL then&amp;nbsp;it&amp;nbsp; wont wok .&lt;/P&gt;&lt;P&gt;YES, as long as they are embed tokens and not Azure AD access tokens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to set the life time of embedURL to 'N' minutes&amp;nbsp;? So that user will be forced to use new token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NO, the embedUrl points to a resource. It's the embed token that provides access to the resource. The Power BI&amp;nbsp;embed token lifetime is about 60 minutes but I do not think that is something you could change.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 19:09:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541441#M16797</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-13T19:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide embedUrl  and AccessToken from Javascript in  PowerBIEmbedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541445#M16798</link>
      <description>&lt;P&gt;Hi Ted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the swift reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Suresh RM&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 19:36:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-bypass-Power-BI-JavaScript-Library-to-embed-Power-BI/m-p/541445#M16798</guid>
      <dc:creator>sureshrm</dc:creator>
      <dc:date>2018-10-13T19:36:21Z</dc:date>
    </item>
  </channel>
</rss>

