From f872b9e8f551a235ade3d0681e05dbb9e8e4d3a5 Mon Sep 17 00:00:00 2001 From: cortex Date: Sun, 24 May 2026 11:26:17 +0100 Subject: [PATCH] . --- init/scripts/config_gen.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/scripts/config_gen.sh b/init/scripts/config_gen.sh index a3a3380..700cc40 100755 --- a/init/scripts/config_gen.sh +++ b/init/scripts/config_gen.sh @@ -101,6 +101,7 @@ log_info "Linking Synapse and MAS via OIDC..." CLIENT_ID="synapse-client" CLIENT_SECRET=$(openssl rand -hex 32) ADMIN_SECRET=$(openssl rand -hex 32) +MATRIX_SECRET=$(openssl rand -hex 32) MATRIX_ENDPOINT="http://synapse:8008" EXISTING_CLIENT=$(yq '.clients[] | select(.client_id == "'"${CLIENT_ID}"'")' "$MAS_CFG" 2>/dev/null || echo "") @@ -142,6 +143,7 @@ if ! yq '.oidc_providers' "$SYNAPSE_CFG" 2>/dev/null | grep -q "idp_id"; then \"issuer\": \"${ISSUER_URL}\", \"client_id\": \"${CLIENT_ID}\", \"client_secret\": \"${CLIENT_SECRET}\", + \"shared_secret\": \"${MATRIX_SECRET}\", \"scopes\": [\"openid\", \"profile\"], \"skip_verification\": false }]" "$SYNAPSE_CFG" || { log_error "Failed to inject OIDC config"; exit 1; }