From 73c5432bd8975b2bc8875fa89795ca7b622d842e Mon Sep 17 00:00:00 2001 From: Asa Kirby Date: Wed, 14 Jun 2023 03:42:50 -0500 Subject: [PATCH] make remote_user case-insensitive (#268) --- custom_components/auth_header/headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/auth_header/headers.py b/custom_components/auth_header/headers.py index 764b9b0..bdcaf59 100644 --- a/custom_components/auth_header/headers.py +++ b/custom_components/auth_header/headers.py @@ -55,7 +55,7 @@ async def async_login_flow(self, context: Optional[Dict]) -> LoginFlow: [], cast(IPAddress, context.get("conn_ip_address")), ) - remote_user = request.headers[header_name] + remote_user = request.headers[header_name].casefold() # Translate username to id users = await self.store.async_get_users() available_users = [