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
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
- orygreg8 years agoFrequent Visitor
Hi Juramirez,
Have you found a solution to this yet? I'm facing the same exact issue.
The only way I could get the embedding to "work" was use an older version of "Microsoft.IdentityModel.Clients.ActiveDirectory", which uses AcquireToken() instead of AcquireTokenAsync() - but the user is prompted for credentials since they can't be passed (or, I have figured out how to pass them).
Thanks,
Greg
- orygreg8 years agoFrequent Visitor
Hi Juramirez,
Did you ever get this working? I have similar problem - except my error on the "AcquireTokenAsync" call is: "Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException: parsing_wstrust_response_failed: Parsing WS-Trust response failed".
I can make it work, sort of, if: 1) I revert to a much older install of "Microsoft.IdentityModel.Clients.ActiveDirectory" (one WITHOUT the Async method), and 2) I use AcquireToken (not AcquireTokenAsync). Of course, then I get prompted for credentials.
Thanks,
Greg