Forum Discussion
PowerBI Embedded advantages
With Publish to Web, if the URL gets out, anyone can see it. There is no authentication at all. Plus, other things like export to Excel are turned off, etc. What you are talking about is called security through obscurity. If you want to go down that route nobody can stop you.
With Embed, there is always authentication. So no, you cannot just grab the javascript code and get access without authenticating. This is actual security.
The level of security you desire is your choice.
Thanks for your answer.
Maybe I am doing something wrong.
I created a Javascript based on a tutorial here:
https://www.youtube.com/watch?v=BwBnAN2PrWA&list=PLib8Q64STW-tLS5zh0HZmfT0QEopzqDc3&index=7&t=0s
Maybe it's because in this example the App ID and username and password of Powerbi are stored in the Function app on Azure?
I am pretty sure if I give you the result of this youtube tutorial, you are also allowed to see this.
What would be the best way to arrange authentication for PowerBI Embedded?