<?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 QnA Embedding in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/305109#M8984</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am following the online QnA example at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#" target="_self"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html&lt;/A&gt;&amp;nbsp;to embed QnA into a asp.net mvc intranet portal. I am using exactly the same code although modifying the values for&amp;nbsp;embed token, embed url, and dataset id. But all i get in the embededded frame is as below. There aren't any errors in the browser console either. I am&amp;nbsp;getting the access token by following the article at&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token&lt;/A&gt;. The intranet portal is internal to Microsoft. Any ideas why this is not working?&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qna.PNG" style="width: 200px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/69778i156507BC6CA92D9C/image-size/small?v=v2&amp;amp;px=200" role="button" title="qna.PNG" alt="qna.PNG" /&gt;&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;</description>
    <pubDate>Thu, 16 Nov 2017 20:20:36 GMT</pubDate>
    <dc:creator>kiran_subhedar</dc:creator>
    <dc:date>2017-11-16T20:20:36Z</dc:date>
    <item>
      <title>QnA Embedding</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/305109#M8984</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am following the online QnA example at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#" target="_self"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html&lt;/A&gt;&amp;nbsp;to embed QnA into a asp.net mvc intranet portal. I am using exactly the same code although modifying the values for&amp;nbsp;embed token, embed url, and dataset id. But all i get in the embededded frame is as below. There aren't any errors in the browser console either. I am&amp;nbsp;getting the access token by following the article at&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token&lt;/A&gt;. The intranet portal is internal to Microsoft. Any ideas why this is not working?&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qna.PNG" style="width: 200px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/69778i156507BC6CA92D9C/image-size/small?v=v2&amp;amp;px=200" role="button" title="qna.PNG" alt="qna.PNG" /&gt;&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;</description>
      <pubDate>Thu, 16 Nov 2017 20:20:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/305109#M8984</guid>
      <dc:creator>kiran_subhedar</dc:creator>
      <dc:date>2017-11-16T20:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/306398#M9009</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/47088"&gt;@kiran_subhedar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am following the online QnA example at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#" target="_self"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html&lt;/A&gt;&amp;nbsp;to embed QnA into a asp.net mvc intranet portal. I am using exactly the same code although modifying the values for&amp;nbsp;embed token, embed url, and dataset id. But all i get in the embededded frame is as below. There aren't any errors in the browser console either. I am&amp;nbsp;getting the access token by following the article at&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token&lt;/A&gt;. The intranet portal is internal to Microsoft. Any ideas why this is not working?&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qna.PNG" style="width: 200px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/69778i156507BC6CA92D9C/image-size/small?v=v2&amp;amp;px=200" role="button" title="qna.PNG" alt="qna.PNG" /&gt;&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/47088"&gt;@kiran_subhedar&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;In embedding scenarios, embedded token starting with H4sIxxx.. is required, instead of an access token. You can get the embedded token with the access token by calling &lt;A href="https://msdn.microsoft.com/en-us/library/mt784614.aspx" target="_self"&gt;GenerateToken&lt;/A&gt;, see&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt784614.aspx#Generate token for Q&amp;amp;A" target="_self"&gt;Generate token for Q&amp;amp;A&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 01:20:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/306398#M9009</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-20T01:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/306679#M9020</link>
      <description>&lt;P&gt;I finally got it working by specifying tokenType as models.TokenType.Aad instead of models.TokenType.Embed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;var config = {&lt;BR /&gt;type: 'qna',&lt;BR /&gt;tokenType: models.TokenType.Aad,&lt;BR /&gt;accessToken: txtAccessToken,&lt;BR /&gt;embedUrl: txtEmbedUrl,&lt;BR /&gt;datasetIds: [txtDatasetId],&lt;BR /&gt;viewMode: models.QnaMode.Interactive,&lt;BR /&gt;question: txtQuestion&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 08:41:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/306679#M9020</guid>
      <dc:creator>kiran_subhedar</dc:creator>
      <dc:date>2017-11-20T08:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/307272#M9038</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/47088"&gt;@kiran_subhedar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I finally got it working by specifying tokenType as models.TokenType.Aad instead of models.TokenType.Embed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var config = {&lt;BR /&gt;type: 'qna',&lt;BR /&gt;tokenType: models.TokenType.Aad,&lt;BR /&gt;accessToken: txtAccessToken,&lt;BR /&gt;embedUrl: txtEmbedUrl,&lt;BR /&gt;datasetIds: [txtDatasetId],&lt;BR /&gt;viewMode: models.QnaMode.Interactive,&lt;BR /&gt;question: txtQuestion&lt;BR /&gt;};&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/47088"&gt;@kiran_subhedar&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'd suggest using "tokenType: models.TokenType.Embed",&amp;nbsp;the main concern is that the&amp;nbsp;&lt;SPAN&gt;models.TokenType.Aad would have more security risk. The access token would be plaintext in your web page, with the access token anyone can access all reports, dashboards, datasets etc via REST API, while using embedded token which is specific for the embedded objects has narrowed-down access permissions. Meanwhile For feature Row Level Security in &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedding" target="_self"&gt;Embedding for your customers&lt;/A&gt; scenario, you'll have to use embed token.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 00:32:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/307272#M9038</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-21T00:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/307549#M9059</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;, actually I did tried to use the guidelines mentioned on page&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt784614.aspx" target="_blank"&gt;GenerateToken&lt;/A&gt;&amp;nbsp;(&lt;A href="https://msdn.microsoft.com/en-us/library/mt784614.aspx#Generate token for Q&amp;amp;A" target="_self"&gt;Generate token for Q&amp;amp;A&lt;/A&gt;), and tried to mimic the example on the page to get a token for Q&amp;amp;A but received a Forbidden error. I think that this code meant to be used for Embedding for Customers, where in our website we are embedding for an organization, for which the method of generating a token is different, hence I used the token type as AaD. Moreover, do I need to generate a separate token for Q&amp;amp;A, in addition to the AaD token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:14:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding/m-p/307549#M9059</guid>
      <dc:creator>kiran_subhedar</dc:creator>
      <dc:date>2017-11-21T08:14:13Z</dc:date>
    </item>
  </channel>
</rss>

