Skip to content

Commit

Permalink
make remote_user case-insensitive (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
FirbyKirby authored Jun 14, 2023
1 parent b0a229a commit 73c5432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/auth_header/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 73c5432

Please sign in to comment.