Description
Current
Since 0.89, Trusted Networks Auth Provider will load its own config.
homeassistant:
auth_providers:
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- ::1
- 192.168.0.0/24
- fd00::/8
Proposed Change
homeassistant:
auth_providers:
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- ::1
- 192.168.0.0/24
- fd00::/8
trusted_users:
192.168.0.0/24:
- user1_id
- user2_id
192.168.0.1: user1_id
fd00::/8:
- group: group_1
bypass_login: false
The changes around the user list provided in the login form, depends on where the request is coming from, the user list could be different
trusted_users key in the example | explain |
---|---|
192.168.0.0/24 | two users allow to choice |
192.168.0.1 | only one user allow to choice, this has overlap with above entry, we will do AND logic |
fd00::/8 | all users in group_1 |
rest | all active, non-system users are in the option list |
Especially if bypass_login
is enabled and only one user could be chosen, the login form could be skipped.
Migration / Breaking Changes
No issue, all options are additional
EDIT: modify group base on feedback