1
0
forked from baron/baron-sso

staging init-rp 클라이언트 ID 이스케이프 버그 수정

This commit is contained in:
2026-03-25 09:50:12 +09:00
parent 6fbf1a17b8
commit 39bd003c48

View File

@@ -277,14 +277,14 @@ services:
# Function to create or update OAuth2 client (Idempotency)
upsert_client() {
ID=$1
ID=$$1
shift
if hydra get oauth2-client --endpoint http://hydra:4445 "$ID" >/dev/null 2>&1; then
echo "Updating existing client: $ID"
hydra update oauth2-client --endpoint http://hydra:4445 "$ID" "$@"
if hydra get oauth2-client --endpoint http://hydra:4445 "$$ID" >/dev/null 2>&1; then
echo "Updating existing client: $$ID"
hydra update oauth2-client --endpoint http://hydra:4445 "$$ID" "$$@"
else
echo "Creating new client: $ID"
hydra create oauth2-client --endpoint http://hydra:4445 --id "$ID" "$@"
echo "Creating new client: $$ID"
hydra create oauth2-client --endpoint http://hydra:4445 --id "$$ID" "$$@"
fi
}