mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
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:
parent
1e26151069
commit
39eaa7fc8d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user