Add trusted networks deprecating warning (#22487)
* Add trusted networks deprecating warning * Update auth.py * Update auth.py * Update auth.py * Update auth.py * Tweak
This commit is contained in:
1 parent
1e26151069
commit
39eaa7fc8d
1 file changed
+6
@@ -190,6 +190,12 @@ def setup_auth(hass, app):
|
|||||||
|
|
||||||
elif (trusted_networks and
|
elif (trusted_networks and
|
||||||
await async_validate_trusted_networks(request)):
|
await async_validate_trusted_networks(request)):
|
||||||
|
_LOGGER.warning(
|
||||||
|
'Access from trusted networks without auth token is going to '
|
||||||
|
'be removed in Home Assistant 0.96. Configure the trusted '
|
||||||
|
'networks auth provider or use long-lived access tokens to '
|
||||||
|
'access %s from %s',
|
||||||
|
request.path, request[KEY_REAL_IP])
|
||||||
authenticated = True
|
authenticated = True
|
||||||
|
|
||||||
elif (support_legacy and HTTP_HEADER_HA_AUTH in request.headers and
|
elif (support_legacy and HTTP_HEADER_HA_AUTH in request.headers and
|
||||||
|
|||||||
Reference in new issue
Block a user