fix: use Docker-internal URL for server OIDC issuer in bootstrap
Bootstrap was sending LOGTO_PUBLIC_ENDPOINT (http://localhost:3001) as the OIDC issuer URI to the server. Inside Docker, localhost is unreachable. Changed to LOGTO_ENDPOINT (http://logto:3001). Also: .env must set LOGTO_ISSUER_URI=http://logto:3001/oidc (not localhost) since this env var feeds cameleer3-server's OIDC decoder. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -442,7 +442,7 @@ if [ "$SERVER_HEALTHY" = "yes" ] && [ -n "$TRAD_SECRET" ]; then
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"enabled\": true,
|
||||
\"issuerUri\": \"$LOGTO_PUBLIC_ENDPOINT/oidc\",
|
||||
\"issuerUri\": \"$LOGTO_ENDPOINT/oidc\",
|
||||
\"clientId\": \"$TRAD_ID\",
|
||||
\"clientSecret\": \"$TRAD_SECRET\",
|
||||
\"autoSignup\": true,
|
||||
|
||||
Reference in New Issue
Block a user