From 4ff04c386e216590e05494273c8daa9c9001e017 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 13 Apr 2026 18:04:30 +0200 Subject: [PATCH] fix(installer): force lowercase hostname in merge_config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moves hostname normalization into merge_config() so it applies regardless of source (CLI flag, env var, config file, prompt, auto-detect). Logto normalizes hostnames internally — case mismatch causes JWT issuer validation failure (401). Co-Authored-By: Claude Opus 4.6 (1M context) --- installer/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/install.sh b/installer/install.sh index c2b6efb..155ee44 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -494,6 +494,9 @@ merge_config() { : "${COMPOSE_PROJECT:=$DEFAULT_COMPOSE_PROJECT}" : "${DOCKER_SOCKET:=$DEFAULT_DOCKER_SOCKET}" + # Force lowercase hostname — Logto normalizes internally, case mismatch breaks JWT validation + PUBLIC_HOST=$(echo "$PUBLIC_HOST" | tr '[:upper:]' '[:lower:]') + if [ -z "$NODE_TLS_REJECT" ]; then if [ "$TLS_MODE" = "custom" ]; then NODE_TLS_REJECT="1"