Forum Discussion
Validate URL Filter
If you want to restrict what the user can see you should look at implementing Row Level Security so that the permissions are enforced at the model level.
Because couldn't the user just grab the start of the URL and open the report directly in the portal (eg. http://localhost/Reports/powerbi/MyReport) in a new browser window bypassing any logic on your page?
- Anonymous7 years agoNot applicable
Yes, I need to look at RLS.
No I parse the URL looking for specific IDs which I then authorize using my security extension. But of course that could've been a real security miss.
Thank you!
- Anonymous6 years agoNot applicable
Anonymous I've been tasked with parsing the Power BI URL and can't figure out how to do it. Do you mind sharing how you achieved this?
(Essentially, there is a button in the Power BI report that links to additonal information, and I want to read the Power BI URL for a variable in there that will be used to create the dynamic link in the button).
Thanks!
- Anonymous6 years agoNot applicable
Not sure I understand what you mean but i simply just extract the URL from the IRSRequestContext and then do string validation on it using regex and other rules specificly for my purpose.
I do this in my implementation of IAuthenticationExtension2.GetUserInfo