cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daxesh
Helper I
Helper I

How Embedding Power BI report in custom application is secured?

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

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft
Microsoft

@daxesh

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.

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft
Microsoft

@daxesh

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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors