Forum Discussion
toy
Advocate I
8 years agoauthentication issue when embedding in aspnetcore
building on this previous post: https://community.powerbi.com/t5/Developer/Embed-Power-BI-dashboard-in-ASP-Net-core/td-p/273279 (Embed Power BI dashboard in ASP.Net core) on this line: ...
- 8 years ago
endpoints have changed:
AuthorityUrl = "https://login.windows.net/common/oauth2/token/
in one of the examples it was
AuthorityUrl = "https://login.windows.net/common/oauth2/authorize/
which is what i had in my code
hope this helps
Ameb
Helper I
8 years agoI'm having the exactly same issue, with the same code. Have also tried to get the token using Postman.
Always getting the Sign in page as response.
Here is the request:
POST /common/oauth2/authorize/ HTTP/1.1 Host: login.windows.net Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache client_id=clientId& resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi& grant_type=password& username=user@domain& password=userpassword& scope=openid
toy
Advocate I
8 years agoendpoints have changed:
AuthorityUrl = "https://login.windows.net/common/oauth2/token/
in one of the examples it was
AuthorityUrl = "https://login.windows.net/common/oauth2/authorize/
which is what i had in my code
hope this helps
- Ameb8 years ago
Helper I
Thank you! Was the endpoint :)