I am trying to embed power BI Dash Board report into Web application.
1) I have configured the application using this Microsoft link and their sample application from github https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization.
2) I have also tried configuring using this documentation https://bitbucket.org/omnistream/powerbi-api-example\
I am accessing the end point with my company email id /password . below is the details. i have admin rights on dash board report and I have power BI pro user account.
Post End point: https://login.microsoftonline.com/common/oauth2/token
Request Header : User-Agent: Fiddler Host: login.windows.net content-Type: application/x-www-form-urlencoded Content-Length: xxx
with request body : grant_type=password&scope=openid&[email protected]&password=MyPassword&client_id=XXXXX&resource=https://analysis.windows.net/powerbi/api&client_secret=XXXXX
it throws below error: error_description=AADSTS70002: Error validating credentials. AADSTS50126: Invalid username or password Trace ID: c13c59dc-79e2-4169-bae2-06c402310100 Correlation ID: a747a226-362a-45aa-956a-122629fa9863 Timestamp: 2018-08-06 21:27:59Z
Do i need to configure or create Master Power BI account separately ?
or if my company network interfering with Post request to mask the user id/password, is there any tool which can help me to trace this network issue?
MyUserName
(i.e. [email protected]). Did you URI escape your username/password? – Mankarse/
at the end of the POST endpoint). It is possible that you have not authorised the app (client_id) to access your user's ([email protected]) data. You can do this either through the azure admin portal, or by using one of the interactive authentication flows (which will pop up a checkbox asking for permission). – Mankarse