Just tossed the new PSUniversal on my lab box. I was trying to toss up a customized login page following the documentation. I basically took the code block and customized it to my scenario, then saved loginPage.ps1 in the Repository/.universal folder. Restarted service and no change on the login page.
I’ve also tried moving the file to just the Repository folder (documentation wasn’t clear on if it should be in the root, or with the other Universal ps1 files. Curious to know which log i should be looking at to determine the failure.
I’m sorry, i should have stated this part. I fixed the quotes on both the the HeaderFrontColor and the Image properties from your code example. No change.
I’m having the exact same issue. Brand new Windows VM and copied code straight from the documentation and been trying from this thread. Also tried the below and am not getting any luck. More thorough documentation on this feature and authentication would be greatly appreciated.
We got to the bottom of this. It was only working for certain types of licenses but not others. It’s been fixed in main and will be in the 1.5.1 release.
I am still not seeing the custom login page. I have a licensed copy and I upgraded to 1.5.2, copied the code from your example above into loginPage.ps1 in my dashboards Repository folder and restarted the service. The default login page remains. I do not see anything in the logs indicating any errors. I am using the code below.
This returns a null value and in the logs I have this
2020-11-24T12:35:02.8727621-05:00 0HM4GJT36EGI4:00000001 [INF] Request starting HTTP/1.1 GET http://localhost:5000/api/v1/loginPage (ca22a1cb)
2020-11-24T12:35:02.8996383-05:00 0HM4GJT36EGI4:00000001 [WRN] Failed to determine the https port for redirect. (ca76cc21)
2020-11-24T12:35:03.0082332-05:00 0HM4GJT36EGI4:00000001 [INF] Executing endpoint ‘“UniversalAutomation.LoginPageController.Get (UniversalAutomation)”’ (500cc934)
2020-11-24T12:35:03.0300877-05:00 0HM4GJT36EGI4:00000001 [INF] Route matched with “{action = "Get", controller = "LoginPage"}”. Executing controller action with signature “UniversalAutomation.LoginPage Get()” on controller “UniversalAutomation.LoginPageController” (“UniversalAutomation”). (122b2fdf)
2020-11-24T12:35:03.1508543-05:00 0HM4GJT36EGI4:00000001 [INF] Executing ObjectResult, writing value of type ‘“null”’. (8a1b66c8)
2020-11-24T12:35:03.1555283-05:00 0HM4GJT36EGI4:00000001 [INF] Executed action “UniversalAutomation.LoginPageController.Get (UniversalAutomation)” in 121.0024ms (afa2e885)
2020-11-24T12:35:03.1565237-05:00 0HM4GJT36EGI4:00000001 [INF] Executed endpoint ‘“UniversalAutomation.LoginPageController.Get (UniversalAutomation)”’ (99874f2b)
2020-11-24T12:35:03.1603492-05:00 0HM4GJT36EGI4:00000001 [INF] Request finished in 290.8216ms 204 (791a596a)
Just to 100% clear with how I have this configured, here’s my current login page configuration. It’s stored in %ProgramData%\UniversalAutomation\Repository\.universal\loginPage.ps1
The Product in my License is “Universal Dashboard and API” and I have confirmed the loginPage.ps1 is in the folder you indicated %ProgramData%\UniversalAutomation\Repository.universal\loginPage.ps1.
Apologies. We actually had two issues with this and I didn’t realize it. The problem is that if you restart the server, the changes are not reloaded properly. If you make a change with the server running, you should notice the login page display correctly. The other issue was that single-file configurations worked which is how our integration tests were setup for this particular case so it did not catch the issue automatically. We’ve fixed this and it will be in the next nightly and the 1.5.3 build.
I have confirmed the login page is working in 1.5.3 as expected.
Can we customize the login page more than the example provided? I modified the running CSS in the browser, and would really like to complete the loginpage.ps1 to look something like this.