forked from baron/baron-sso
staging init-rp 클라이언트 ID 이스케이프 버그 수정
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user