Disable /login page

Product: PowerShell Universal
Version: 2.10.0

Is there a way to disable the login page when using OIDC?
Currently have it configured, but someone can browse to https://url.com/login and get to the login screen. On 1.5.21 you would get a page not found. I have the forms auth set to disabled

this is my current Authentication.ps1 file
image

Also by extension, it seems like when a page is not found it doesn’t return the proper http response 404, it returns 200

The login page not disabling seems like a bug. We shouldn’t include that if forms is disabled.

As for the page not found, that’s due to the fact that it’s finding the dashboard but then trying to navigate within the dashboard to a page that doesn’t exist. The web server doesn’t know about the dashboard pages directly and the client-side application is displaying the page not found. That said, there must be a way to return a 404 in this case.