Customizing the login page with a Dashboard

Customizing the login page with a Dashboard

avatar
Product: PowerShell Universal
Version: 4.1.7


In the documentation there is a topic called “Customizing the login page with a Dashboard”, with the final hint “You will then need to implement the login features manually.”

How? Could you provide a small example?

As I’m using a multiple ActiveDirectory authentication.ps1 I need some complexity/space for user information, a dashboard/app would be ideal.

All Comments (3)

avatar

I will be updating this documentation this week as someone else is asking for more details on that as well.

I honestly have not worked with this in a long time so need to do some digging on how to accomplish it.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Hey @saschaspiekermann

Yeah, it’s definitely related to my issue as well. Maybe you’ve seen it already:

OK guys I think I tried everything that is achievable and that, in my opinion, could make sense: I went through the docs again here where everything about forms auth is documented, also regarding overriding the /login page: I then tried to make a new “Login Dashboard” w/o authentication (as stated in the docs). Here are the code bits: New-UDTextbox -Id "tboxLoginUsername" -Label "Username" -Icon (New-UDIcon -Icon 'user') -Placeholder "john.doe@company.com" New-UDElement -Tag "br" …

I’ve also put together a very simple custom login page to show that with the information I’ve found spread around the docs and cmdlethelp, it doesn’t work as I imagined it should.

So I’m really happy that we can expect un updated documentation this week.

Best regards,
Don

avatar

Hi @saschaspiekermann

Don’t know if you’ve already seen it but Adam has responded to my previous thread and therefore I think that this will probably help you as well.

Alright. I’ve come up with a solution. It wasn’t quite as straight forward as I first thought but it works. I have 2 apps. New-PSUApp -Name "a" -FilePath "dashboards\a\a.ps1" -BaseUrl "/app" -AutoDeploy New-PSUApp -Name "App2" -FilePath "dashboards\App2\App2.ps1" -BaseUrl "/app2" -Authenticated -AutoDeploy /app is used for the login. The idea with this is that the user enters their email address. For my test, I’m just setting a URL into the clipboard but this would be the URL you would inclu…

Take care,
Don