<?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 Power BI Embedded authentication error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/197670#M6295</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to run the samples from the following link: &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-dashboard/" target="_self"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-dashboard/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the steps, but I get an authentication error in both the 'App owns data' and 'User owns data' samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 'App owns data' sample I get the following error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Operation returned an invalid status code 'Forbidden'&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the following line of code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="red"&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(GroupId, report.Id, generateTokenRequestParameters);&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 'User owns data' dashboard sample, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I clicked 'Sign in to Power BI' and entered details I received an authentication error '&lt;EM&gt;System.FormatException: 'Index (zero based) must be greater than or equal to zero and less than the size of the argument list&lt;/EM&gt;.' at &lt;STRONG&gt;AuthenticationResult AR = AC.AcquireTokenByAuthorizationCode(code, new Uri(redirectUri), cc);&lt;/STRONG&gt; in redirect.aspx.cs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help on these would be great, thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 16:25:54 GMT</pubDate>
    <dc:creator>E-Mac2</dc:creator>
    <dc:date>2017-06-20T16:25:54Z</dc:date>
    <item>
      <title>Power BI Embedded authentication error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/197670#M6295</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to run the samples from the following link: &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-dashboard/" target="_self"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-dashboard/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the steps, but I get an authentication error in both the 'App owns data' and 'User owns data' samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 'App owns data' sample I get the following error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Operation returned an invalid status code 'Forbidden'&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the following line of code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="red"&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(GroupId, report.Id, generateTokenRequestParameters);&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 'User owns data' dashboard sample, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I clicked 'Sign in to Power BI' and entered details I received an authentication error '&lt;EM&gt;System.FormatException: 'Index (zero based) must be greater than or equal to zero and less than the size of the argument list&lt;/EM&gt;.' at &lt;STRONG&gt;AuthenticationResult AR = AC.AcquireTokenByAuthorizationCode(code, new Uri(redirectUri), cc);&lt;/STRONG&gt; in redirect.aspx.cs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help on these would be great, thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/197670#M6295</guid>
      <dc:creator>E-Mac2</dc:creator>
      <dc:date>2017-06-20T16:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded authentication error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/198915#M6343</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/33543"&gt;@E-Mac2&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please try to follow below steps.&lt;/P&gt;
&lt;P&gt;1. &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-dashboard/#step-1---register-an-app-in-azure-ad" target="_self"&gt;Register a new Azure AD app&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;2. Go to Azure portal, login with the User used when registering the app. Then find the registered Azure app.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/46718iC96CA97BF4EAD354/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;I class="lia-fa lia-fa-search-plus lia-media-lightbox-trigger"&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.Then edit required permisson, select all checkboxes for &lt;STRONG&gt;Power BI Services&lt;/STRONG&gt; and click &lt;STRONG&gt;Save&lt;/STRONG&gt;. At last, click &lt;STRONG&gt;Grant Permission&lt;/STRONG&gt; and click yes.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/46719i9EC222CF6F22B4EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 01:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/198915#M6343</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-22T01:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded authentication error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/199352#M6356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mananged to solve the first problem. I was trying to access a private group using it's ID. I created a new 'open' group. This allowed me to access the report using the group ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the second issue, I tried the above permission changes but the problem still persists &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 10:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/199352#M6356</guid>
      <dc:creator>E-Mac2</dc:creator>
      <dc:date>2017-06-22T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded authentication error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/202932#M6470</link>
      <description>&lt;P&gt;Were you able to resolve the issue with&amp;nbsp;returning a "Forbidden"? &amp;nbsp;I am working through testing a solution and am now receiving the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever the code executes the following line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(GroupId, report.Id, generateTokenRequestParameters);&lt;/PRE&gt;&lt;P&gt;This sample was working with no issues yesterday but this morning now it is returning this error.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/202932#M6470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded authentication error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/202936#M6471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were any of the security settings of the group changed recently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way I worked around it was by creating a new non-private group and replacing the group ID in the code with the new group ID from the newly created group.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/202936#M6471</guid>
      <dc:creator>E-Mac2</dc:creator>
      <dc:date>2017-06-28T13:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded authentication error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/202957#M6473</link>
      <description>&lt;P&gt;Hmm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added members to the group but that's all that has changed. &amp;nbsp;Randomly it started working for a few minutes but now it's returning a forbidden error again. &amp;nbsp;It seems to me that something is going on with the service that's causing an issue. &amp;nbsp;I could make the group public but that isn't ideal for security reasons.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:27:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-authentication-error/m-p/202957#M6473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T13:27:27Z</dc:date>
    </item>
  </channel>
</rss>

