Owner locked out by allow_bypass_login

To avoid the login procedure of home assistant I wanted to use the trusted networks athentication provider. Because I don’t want the trusted user to be the ‘owner’ I created a second ‘user’ account which I added in the configuration as shown below.

homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.3.0/24
      trusted_users:
        192.168.3.0/24: my_user_id
      allow_bypass_login: true
    - type: homeassistant

This does what I want for daily use, but unfortunately this also locks out the ‘owner’ user. I’m not able to login to home assistant manually. I hoped this would be possible by logging out after the automatic login but this doesn’t seem the case.

Is there a way to achieve this by changing my configuration? Or is there an url on the home assistant server I can access to bypass the automatic login and use user/password authentication to login with my ‘owner’ account?

If you move the homeassistant type to the top (on top of truste_networks) it will always prompt for that first and the trusted user will have to switch to trusted_networks to use that instead of user/pass

Thanks for your reply David. I changed the order and now I can login as owner again.
Unfortunately now I need to get through the login screen again, but I think I can live with that :slight_smile:.
At least I don’t have to type a password to login as a regular user.

1 Like