Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I guys,
I would like to embed some reports uploaded on my Power BI Workspace in my web application based on Spring MVC (Javascript based front end). I read about several custom solution but I have some dubts.
I tried to embed my reports with the simple snippet code getted in Power BI Embedded Playground, using the Javascript SDK (powerbi.js), and it work perfectly.
var config = { type: 'report', tokenType: tokenType == '0' ? models.TokenType.Aad : models.TokenType.Embed, accessToken: 'UzI1NiI...sIng1dC', embedUrl: 'https://app.powerbi.com/view?r=JiO....YzkzZ', id: 'f04...d71d', permissions: permissions, settings: { filterPaneEnabled: true, navContentPaneEnabled: true } };
The problem is wich in JS anyone can take the URL and visualize the report's data without use the token or the report ID.
So, following the guide, I saw that I can use an Azure app to use an API Rest to authenticate the user and get a token for show the report. But there is a tutorial that explain this?
In simple terms I would like to get a valid token calling the Power BI Rest API (Java) and use that to embed a report througth Javascript SDK. Meanwhile I created an Azure App and I've got some reports in my Power BI Workspace, but I don't know how to connect them to be able to use the API and the JS SDK together. At the same time I would like to allow to show the report only from my web app, to prevent users not logged in, they can view the report, even with the URL.
Thank you in advance!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |