Improve X-Forwarded-* request headers handling (#38696)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
19 files changed
+703
-195
No files matched your search
@@ -9,7 +9,7 @@ import jwt
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from .const import KEY_AUTHENTICATED, KEY_HASS_USER, KEY_REAL_IP
|
||||
from .const import KEY_AUTHENTICATED, KEY_HASS_USER
|
||||
|
||||
# mypy: allow-untyped-defs, no-check-untyped-defs
|
||||
|
||||
@@ -118,7 +118,7 @@ def setup_auth(hass, app):
|
||||
if authenticated:
|
||||
_LOGGER.debug(
|
||||
"Authenticated %s for %s using %s",
|
||||
request[KEY_REAL_IP],
|
||||
request.remote,
|
||||
request.path,
|
||||
auth_type,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user