From c937e1bad123e005332412cb9b310198fa918455 Mon Sep 17 00:00:00 2001 From: Rabit Date: Sat, 25 Jan 2025 20:18:01 -0500 Subject: [PATCH] Implemented simple idea of adding X-Proxy-Secret auth way --- custom_components/frigate/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/frigate/api.py b/custom_components/frigate/api.py index a39e4217..8d7375d4 100644 --- a/custom_components/frigate/api.py +++ b/custom_components/frigate/api.py @@ -322,6 +322,10 @@ async def _get_auth_headers(self) -> dict[str, str]: if "token" in self._token_data: headers["Authorization"] = f"Bearer {self._token_data['token']}" + elif self._password: + # If only password is set - treat it as proxy secret + headers["X-Proxy-Secret"] = self._password + return headers async def api_wrapper(