Fix auth-host being added to origins even when no origins were wanted.

This commit is contained in:
2026-02-19 01:00:13 +00:00
parent d431c75297
commit 4e6f63e9ef
+2 -1
View File
@@ -124,7 +124,8 @@ def main():
args.auth_host = f"https://{args.auth_host}" args.auth_host = f"https://{args.auth_host}"
args.auth_host = args.auth_host.rstrip("/") args.auth_host = args.auth_host.rstrip("/")
validate_auth_host(args.auth_host, args.rp_id) validate_auth_host(args.auth_host, args.rp_id)
args.origins.insert(0, args.auth_host) # Ensure first in origins if args.origins:
args.origins.insert(0, args.auth_host) # Ensure first in origins
# Normalize, strip trailing slashes, and deduplicate while preserving order # Normalize, strip trailing slashes, and deduplicate while preserving order
origins = list({normalize_origin(o).rstrip("/"): ... for o in (args.origins)}) origins = list({normalize_origin(o).rstrip("/"): ... for o in (args.origins)})