I am trying to embed the Power BI application to Angular Client. And have already done following stuff.
Created a Power BI report and deployed to a work Space using PowerBI pro license. Able to get the reportID and GroupId from URL.
Registered the APP in PowerBI app and in Azure AD, Provided the necessary permissions in the Azure AD
And to get the access token added following code:
And the app settings used like this:
However with the right username and password with what I have registered the Azure AD I am not getting the token.
Even though the API returned OK success I am getting this as response. I am not sure what I am missing here. I am using .net Core Application.
Use "https://login.microsoftonline.com/common/oauth2/token" (Token URL) instead of "https://login.windows.net/common/oauth2/authorize" (Authority URL).
Update the URL in the following patch of code.
Refer documentation for more information.