Forum Discussion
Parsing WS-Trust Power BI embedded
Hi Juramirez,
Could you do some debugging on your application to find out which code you're using is throwing this error, and post the code here? So that we can better assist on this issue. :smileyhappy:
Regards
- Juramirez8 years agoResolver I
Hi v-ljerr-msft
Thanks for reply. This is the code that is giving me the exception:
var authenticationResult = await authenticationContext.AcquireTokenAsync("https://analysis.windows.net/powerbi/api", "CLIENT ID FROM AZURE", credential);It works inside a development server but in a production server it marks the exception. How can I solve it? Why is it happening?
Regards
JR
- Juramirez8 years agoResolver I
- orygreg8 years agoFrequent Visitor
Hi Juramirez,
Did you ever get this resolved? I'm facing exact same issue.
The only way I've gotten the embedding to "work" is to use an older version of the "Microsoft.IdentityModel.Clients.ActiveDirectory" NuGet package - one WITHOUT the AcquireTokenAsync() call, it just has AcquireToken(). But this brings up the credentials prompt.
Thanks,
Greg