Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17881

token is generated but getting 401 on embed report

$
0
0

hello all 

im running the standard sample from github which is here:

https://github.com/Microsoft/PowerBI-Developer-Samples

 

previously i adapted this for the .net core framework

and got it to work

 

but now im rebuilding for .net standard framework and its not working

im stepping thru just the sample (i havent made any code changes to sample other than passwords) - 

i can tell it generated the token

 

but when it goes to calling the report 

ie:  https://app.powerbi.com/reportEmbed?reportId=xxxxxx&groupId=xxxxxxxxx

it comes back with a 401

at line 532 in embed.ts

  node.appendChild(iframeContent); 

 

can anyone help me with some suggs here?

 

 

 ps: i tried the following endpoints

<add key="authorityUrl" value="https://login.windows.net/common/oauth2/authorize/" />
<add key="authorityUrl2" value="https://login.microsoftonline.com/common/oauth2/token" />
<add key="authorityUrl1" value="https://login.windows.net/common/oauth2/token/" />

 

 


Viewing all articles
Browse latest Browse all 17881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>