Scenario: Raspberry Pi loaded with Raspbian Stretch desktop, Home Assistant (~0.72 rev, pre Authentication Providers) running in a python virtual environment. The pi is connected to a wall mounted display via HDMI with no user input devices.
On Home Assistant load an automation is called, which runs a shell command to open the Home Assistant frontend (localhost) in chromium-browser’s incognito mode, as localhost is in the HTTP Trusted Networks is skips any login screens and loads the main interface.
However, this is broken since @awarecan added Add trusted networks auth provider #15812
Issue: Cannot find a workaround to automatically login / skip the login screen.
Ideas: I have the following ideas and any feedback would be greatly appreciated:
Wait and see if someone introduces an “Option to use a default user on trusted network authentication”.
Bodge-it / Browser Automation: As I have full control of the Pi from Home Assistant, I could use some sort of script automation to click "trusted network" and then a user from command line.
Some undocumented method of passing the selected user in the URL to avoid using the login form.
Would have been easier if you accepted my que to make the subnets a dict instead of list. Then the trusted_users would not have needed to duplicate subnets, nor would a per subnet ignore option.
At some point I might though. Getting pulls through reviews are at the moment too much of a pain. Too many redesigns and unrelated changes that get tacked on just since somebody is touching the code (I know the need from project perspective though, many times been in the other side on xbmc/kodi)
Thanks for the idea, but this is a wall mounted display with no user input. I could VNC in to click the button, but for the 10 displays I’m running this would be impracticable, plus I run incognito to avoid chrome asking to restore my last pages, etc.
I’m thinking I should be able to “break” the code which shows the “save my login” to stop it showing.
If I can use a .js file to look for and then resize “ha-store-auth-card” to 1x1 pixels, it would achieve my problem. I could even link it to the autologin wall display user to only use that “theme”, so other users will still see the box.
Since introducing this authentication system I’ve seen several posts flat out telling people who asked that there was no way to skip the login. Now with 0.91 we can skip the login only to save the login?
Personally I don’t trust anyone other than myself to handle authentication with any services that allow anything publicly into my home and have decided to secure my network as I see fit. While I understand the need for security for 90% of the users deploying home-assistant, its always been a bit of an annoyance to have to login twice with any type of SSO. Are there at least any plans or discussions around disabling a dialogue to save a login that is being bypassed?