Product: PowerShell Universal
Version: 4.0.0-beta4
Hello once again
Im still struggling with PSU .
I created some dashboards. Set up authentication and authorization (kind of).
Next think i thought i need to design overall structure of my ‘SELFPORTAL’ applications
I used an idea of dashboard created by Adam called Landing Page (and slightly modified to my needs )
Its working , but I noticed that when every action is a separate dashboard, performance drops (mostly because every action has to refresh whole page not only page content). Memory consumption also was increased a lot. With few dashboard its not a problem, with dozen i think it will.
So I thought that I create only 3 or 4 generic Dashboards (like Active Directory, VM, SQL) and every action within will be a separate page.
Its working al lot better, mote responsive and faster. But I have problem with role based authorization.
When dealing with dashboards i used a method form Adam’s Landing Page:
Get-PSUDashboard -Integrated | Sort-Object Name | ForEach-Object
{
....
}
Protect-UDSection -Role $_.Role -Content $Content
And its working like it should - user see only dashboard that he has access to.
But when dealing with pages I cant get list of all pages from current (or any if its possible) dashboard.
So I cant enumerate it and set authorization with Protect-UDSection.
But authorization is working , form navigation menu i see only proper pages.
So is it possible to do some king of Landing Page but for pages not dashboards at all ?