Forum Discussion
toy
8 years agoAdvocate I
authentication 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
8 years agoHelper I
I'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
8 years agoAdvocate I
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
- Ameb8 years agoHelper IThank you! Was the endpoint :)