title: Embedding PowerBI Dash Board/Report into Web application
body: <p>I am trying to embed power BI  Dash Board report into Web application.</p>
  
  <p>1) I have configured the application using this Microsoft link and their sample application from github  <a href="https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization</a>.</p>
  
  <p>2) I have also tried configuring using this  documentation <a href="https://bitbucket.org/omnistream/powerbi-api-example" rel="nofollow noreferrer">https://bitbucket.org/omnistream/powerbi-api-example</a>\</p>
  
  <p>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. </p>
  
  <p>Post End point: <a href="https://login.microsoftonline.com/common/oauth2/token" rel="nofollow noreferrer">https://login.microsoftonline.com/common/oauth2/token</a> </p>
  
  <p>Request Header : 
  User-Agent: Fiddler
  Host: login.windows.net
  content-Type: application/x-www-form-urlencoded
  Content-Length: xxx</p>
  
  <p>with request body : 
  grant_type=password&amp;scope=openid&amp;username=myUserName@mycompany.com&amp;password=MyPassword&amp;client_id=XXXXX&amp;resource=<a href="https://analysis.windows.net/powerbi/api&amp;client_secret=XXXXX" rel="nofollow noreferrer">https://analysis.windows.net/powerbi/api&amp;client_secret=XXXXX</a></p>
  
  <p>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</p>
  
  <p>Do i need to configure or create Master Power BI account separately ?</p>
  
  <p>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? </p>