diff --git a/docker/logto-bootstrap.sh b/docker/logto-bootstrap.sh index 7a04039..0c6ec0a 100644 --- a/docker/logto-bootstrap.sh +++ b/docker/logto-bootstrap.sh @@ -177,6 +177,10 @@ else log "Created Traditional app: $TRAD_ID" fi +# Enable skip consent for the Traditional app (first-party SSO) +api_put "/api/applications/$TRAD_ID" '{"isThirdParty": false, "customClientMetadata": {"alwaysIssueRefreshToken": true, "skipConsent": true}}' >/dev/null 2>&1 +log "Traditional app: skip consent enabled." + # --- API resource --- EXISTING_RESOURCES=$(api_get "/api/resources") API_RESOURCE_ID=$(echo "$EXISTING_RESOURCES" | jq -r ".[] | select(.indicator == \"$API_RESOURCE_INDICATOR\") | .id")