Forum Discussion
Is Row-Level Security in Power PBI Embedded Really "Secure" in a Purely Client-Side Application?
- Anonymous6 years ago
Hi PBR
I have just gone through this same scenario whilst migrating an embedded solution from asp.net core MVC - over to React JS.In the App owns data flow, you are right with the fact that 'spoofing' an account/user becomes much easier.
Because of this, I came to the conclusion that creating an API to deal with the creation of tokens/report configuration was the only route forward. My server-side API now validates permissions based on OAuth tokens - and creates an appropriate embed token.
It's frustrating to need an additional server side component - but where security is concerned, it is worth it.
Hope this helps.
PBR - I think if your token type is AAD, then Power BI will handle the RLS part.
If you are embedding the report using the master account, you have to use .net core to pass the user role.
Reference links:
- https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics
- https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#applying-user-and-role-to-an-embed-token
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂