So, I saw the notice of deprecated trusted network configuration under http: in the log after my update to 89.0. So I’m attempting to move to auth_providers: like so:
homeassistant:
# Name of the location where Home Assistant is running
name: Milla Alta
# Location required to calculate the time the sun rises and sets
latitude: 32.296755
longitude: -106.602996
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 1609
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Denver
# Customization file
customize: !include customize.yaml
# authentication services
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.3.0/24
- 127.0.0.1
I’m getting the error:
2019-03-07 13:11:31 ERROR (MainThread) [homeassistant.auth.providers] Unable to load auth provider trusted_networks trusted_networks - 192.168.3.0/24 - 127.0.0.1: No module named 'homeassistant.auth.providers.trusted_networks trusted_networks - 192'
this authentication method still requires a user selection. I just had to update a local network service that was calling the rest api, to use the long lived tokens for auth as trusted networks no longer works.
Trusted Network Auth Provider will not be removed. Only Legacy API Password Auth Provider will discontinue (as its name suggested, and we already communicated about it many times)
Besides Homeassistant Auth Provider, we also have “Command Line Auth Provider” just released in 0.88
I have a dashboard calling five cameras streams that is now causing an IP ban on the tablet displaying the dashboard after upgrading to 0.89.1 and re-working the trusted networks as per below. Anyone know why?
The banned device is on 10.0.1.87 and is trying to access the following: /api/camera_proxy/camera.camera_proxy_camera_front_porch?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Once I update to v89 (I’m on v88 now) then I need to move my “trusted_networks:” entry from under the “http:” section to the “auth_providers:” section under “homeassistant:”?
That’s exactly what I have right now in 0.89.1… But I’m not using webhooks or anything like that so I am having no problems but you have read the changes correctly so far as I can see.