<?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: Validate Power BI Embed Token in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/177850#M5757</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3807"&gt;@vickyprudhvi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How are things going on there?&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 08:17:24 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-05-18T08:17:24Z</dc:date>
    <item>
      <title>Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/170391#M5597</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I was able to create Embedded Toekn using &lt;STRONG&gt;powerbi create-embed-token&lt;/STRONG&gt; Script method using Command Prompt.&lt;/P&gt;&lt;P&gt;I would like to decode this token and validate it. Is there any way of doing it because When I use this token in HTML script.&lt;/P&gt;&lt;P&gt;I am getting error. It says The Content isn't available.&lt;/P&gt;&lt;P&gt;Pls Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/170391#M5597</guid>
      <dc:creator>vickyprudhvi</dc:creator>
      <dc:date>2017-05-05T12:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/171063#M5630</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3807"&gt;@vickyprudhvi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;I was able to create Embedded Toekn using &lt;STRONG&gt;powerbi create-embed-token&lt;/STRONG&gt; Script method using Command Prompt.&lt;/P&gt;
&lt;P&gt;I would like to decode this token and validate it. Is there any way of doing it because When I use this token in HTML script.&lt;/P&gt;
&lt;P&gt;I am getting error. It says &lt;STRONG&gt;The Content isn't available&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Pls Help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Raj&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Usually the error "the content isn't available" is due to the token expiration, if &amp;nbsp;the token was generated correctly. You can decode the token&amp;nbsp;following below steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to &lt;A href="https://jwt.io/ " target="_self"&gt;https://jwt.io/&amp;nbsp;&lt;/A&gt;, paste your token to the left panel.&lt;BR /&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/40258i60E0943F584BF19A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;You'll find an "exp" field in the decoded JSON, copy that number "149xxxxxx".&lt;/LI&gt;
&lt;LI&gt;Go to &lt;A href="https://www.epochconverter.com/" target="_self"&gt;epochconverter&lt;/A&gt;&amp;nbsp;and paste the number, then you'll get &amp;nbsp;the expiring date.&lt;BR /&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/40259iFE41D3DD1B196B65/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;By the way, instead of Power BI - CLI(I guess this tool in your case, as you mentioned &lt;SPAN&gt;create-embed-token&lt;/SPAN&gt;), you can generate the token every time when embedding in a programming way. Though it is not recommended, you can even generate a token that never expires by changing the &lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/search?utf8=%E2%9C%93&amp;amp;q=CreateReportEmbedToken" target="_self"&gt;official demo code&lt;/A&gt;.&lt;/P&gt;
&lt;PRE&gt;var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id,Convert.ToDateTime("2099-12-31"));&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2017 02:54:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/171063#M5630</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-08T02:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/171401#M5639</link>
      <description>&lt;P&gt;Hi &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;Thank you for your reply. I am able to validate using below site but wen I use username and role in the token it is throwing error.&lt;/P&gt;&lt;P&gt;Below is the script I am using to generate token. But not working. Any thoughts&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; token2 = &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'{"ver":"0.2.0","wcn":"'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + workspaceCollectionName + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'","wid": "'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + workspaceId + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'","rid":"'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + reportId + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'","iss":"PowerBISDK","aud":"&lt;A href="https://analysis.windows.net/powerbi/api&amp;quot;,&amp;quot;exp" target="_blank"&gt;https://analysis.windows.net/powerbi/api","exp&lt;/A&gt;":'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + exp + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;',"nbf":'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + nbf + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'","roles": "'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + roles + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'","username": "'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + username + &lt;/FONT&gt;&lt;FONT color="#800000" face="Consolas" size="2"&gt;'"}'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 12:03:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/171401#M5639</guid>
      <dc:creator>vickyprudhvi</dc:creator>
      <dc:date>2017-05-08T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/175165#M5695</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3807"&gt;@vickyprudhvi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi &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;Thank you for your reply. I am able to validate using below site but wen I use username and role in the token it is throwing error.&lt;/P&gt;
&lt;P&gt;Below is the script I am using to generate token. But not working. Any thoughts&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; token2 = &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'{"ver":"0.2.0","wcn":"'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + workspaceCollectionName + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'","wid": "'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + workspaceId + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'","rid":"'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + reportId + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'","iss":"PowerBISDK","aud":"&lt;A href="https://analysis.windows.net/powerbi/api&amp;quot;,&amp;quot;exp" target="_blank"&gt;https://analysis.windows.net/powerbi/api","exp&lt;/A&gt;":'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + exp + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;',"nbf":'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + nbf + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'","roles": "'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + roles + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'","username": "'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; + username + &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#800000"&gt;'"}'&lt;/FONT&gt;&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/3807"&gt;@vickyprudhvi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure if that way to concat the token is valid or not, could&amp;nbsp;you share me any documentation explaining that way to generate a token. I'm more used to &lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/search?utf8=%E2%9C%93&amp;amp;q=CreateReportEmbedToken&amp;amp;type=" target="_self"&gt;Microsoft.PowerBI.Api&lt;/A&gt;&amp;nbsp;in this demo in github, &amp;nbsp;When role and user name needed, I generate a token this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id,"username",new string[] { "role1", "role2", "role3" });&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 May 2017 08:59:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/175165#M5695</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-13T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/177850#M5757</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3807"&gt;@vickyprudhvi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How are things going on there?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 08:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/177850#M5757</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-18T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/186241#M5931</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to generate a token for embedding power bi report, but i am not using power bi embed for this and I wont be performing authorization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;since its not power bi embed,&lt;/P&gt;&lt;PRE&gt;var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id,"username",new string[] { "role1", "role2", "role3" });&lt;/PRE&gt;&lt;P&gt;isnt helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do i go abt this, I got the embed url for the report but a valid access token is a must.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/186241#M5931</guid>
      <dc:creator>shivprasads</dc:creator>
      <dc:date>2017-06-01T14:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/200855#M6411</link>
      <description>&lt;P&gt;Hi &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;As you should have heard regarding new changes with respect to embedding. Now that Azure and PowerBI services are combined. I would like to know how to create embed token with RLS in the new concept. Before we were able to create embed token but today;s world embed token is created in PowerBi Services ( Report ID, Group ID, Aurthentication Code). Is there a way to create embed token in our side. I belive the new embed token is not JWT format.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 01:16:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/200855#M6411</guid>
      <dc:creator>vickyprudhvi</dc:creator>
      <dc:date>2017-06-26T01:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/200883#M6413</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3807"&gt;@vickyprudhvi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi &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;As you should have heard regarding new changes with respect to embedding. Now that Azure and PowerBI services are combined. &lt;STRONG&gt;I would like to know how to create embed token with RLS in the new concept&lt;/STRONG&gt;. Before we were able to create embed token but today;s world embed token is created in PowerBi Services ( Report ID, Group ID, Aurthentication Code). Is there a way to create embed token in our side. I belive the new embed token is &lt;STRONG&gt;not JWT format&lt;/STRONG&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/3807"&gt;@vickyprudhvi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;For the new &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedding/#embedding-with-non-power-bi-users" target="_self"&gt;Embedding with non-Power BI users&lt;/A&gt;, I got the confirmation that the RLS is on the roadmap and will be available in next quarter. So you may not apply RLS for the new concept at this moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, it is no longer JWT format, the' embed token is encrypted in the new concept.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 02:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/200883#M6413</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-26T02:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Power BI Embed Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/330198#M9779</link>
      <description>&lt;P&gt;Hi Eric&lt;/P&gt;&lt;P&gt;How to check the claims now?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 00:27:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Validate-Power-BI-Embed-Token/m-p/330198#M9779</guid>
      <dc:creator>nicksav</dc:creator>
      <dc:date>2017-12-29T00:27:51Z</dc:date>
    </item>
  </channel>
</rss>

