Forms authentication redirects to /admin/home before going to default route

Product: PowerShell Universal
Version: 4.0.9

Im trying to get any user who is a member of the recordings role to be redirected on login to a specified app (I’m using forms login with AD groups). Im setting the DefaultRoute for the role to the app URL like so:

New-PSURole -Name "Recordings" -Description "Provides access to display recordings dashboard" -DefaultRoute "https://psu/Recordings" -Policy {

When I log in with my test user, the redirect after login goes to /admin and I get an unauthorized page. If I then remove the /admin from the URL it correctly routes to the recordings app.

This user only has two related groups, LogonRightsOnly (used in authentication.ps1) and Recordings.

Am I doing something wrong or is this a bug? with hopefully a workaround.

Not sure if it will male a difference, but try settling the default route to /Recordings instead of using the full URL. That’s the only thing that stands out to me.

Thanks for the suggestion. Unfortunately, it didn’t work, still redirects to the admin page.

I have the exact same problem (v. 4.1.7). The two first tests we made worked fine.Since then, users are redirected to /admin.

I don’t understand why such a basic feature doesn’t work properly on our side.

I can reproduce this. It’ll be fixed in 4.2.

1 Like

Thank you Adam!