From 843c415f880726a66082473f5fd6e2aab7323cac Mon Sep 17 00:00:00 2001
From: Christiaan Goossens
<9487666+christiaangoossens@users.noreply.github.com>
Date: Fri, 1 May 2026 15:09:34 +0200
Subject: [PATCH] Respect force https on the initial redirect URI (#303)
* Also force HTTPS on the redirect URI
* Format & test
---
.../auth_oidc/endpoints/injected_auth_page.py | 8 +++-
.../auth_oidc/tools/oidc_client.py | 3 +-
tests/test_hass_webserver.py | 47 +++++++++++++++++++
3 files changed, 54 insertions(+), 4 deletions(-)
diff --git a/custom_components/auth_oidc/endpoints/injected_auth_page.py b/custom_components/auth_oidc/endpoints/injected_auth_page.py
index d800fb6..929d80d 100644
--- a/custom_components/auth_oidc/endpoints/injected_auth_page.py
+++ b/custom_components/auth_oidc/endpoints/injected_auth_page.py
@@ -73,7 +73,7 @@ async def frontend_injection(
frontend_code = await read_file(frontend_path)
# Inject JS and register that route
- injection_js = ""
+ injection_js = ""
frontend_code = frontend_code.replace("