March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello
I am embedding Power BI report in web application using Power BI rest Apis
Refedrred this link :
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report/
Getting a access token from auth2 grant flow seems secure as it had been implemented on server side using C# code.
But when report needs to be embed in iframe i had to fetch reportid , embedurl and accesstoken on javascript side while performing postMessage() on iframe.
If it needs to be done on client side , How is it secure to embed report this way ?
Please explain.
Another thing i need to ask is regarding Power BI - Javascript APis.
This way of embedding the same way that reportid , accesstoken and embedurl needs to be configure in configration settings
Please refer documentation
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details
Then how is it secure if it is on client side.
Thanks in advance
Solved! Go to Solution.
You could see the accesstoken in client end either via postMessage or via Javascript API. By default the accesstoken would expire in one hour.
As to the security concern, when embedding a report via the REST API, before the access token is generated, it actually requires you to login in a pop-up window, you'll have to type your account and password.
You could see the accesstoken in client end either via postMessage or via Javascript API. By default the accesstoken would expire in one hour.
As to the security concern, when embedding a report via the REST API, before the access token is generated, it actually requires you to login in a pop-up window, you'll have to type your account and password.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
3 | |
2 | |
1 | |
1 |
User | Count |
---|---|
6 | |
3 | |
3 | |
2 | |
2 |