forked from baron/baron-sso
Merge pull request 'staging init-rp 클라이언트 ID 이스케이프 버그 수정' (#451) from feature/uf-enhance into dev
Reviewed-on: baron/baron-sso#451
This commit is contained in:
@@ -277,14 +277,14 @@ services:
|
|||||||
|
|
||||||
# Function to create or update OAuth2 client (Idempotency)
|
# Function to create or update OAuth2 client (Idempotency)
|
||||||
upsert_client() {
|
upsert_client() {
|
||||||
ID=$1
|
ID=$$1
|
||||||
shift
|
shift
|
||||||
if hydra get oauth2-client --endpoint http://hydra:4445 "$ID" >/dev/null 2>&1; then
|
if hydra get oauth2-client --endpoint http://hydra:4445 "$$ID" >/dev/null 2>&1; then
|
||||||
echo "Updating existing client: $ID"
|
echo "Updating existing client: $$ID"
|
||||||
hydra update oauth2-client --endpoint http://hydra:4445 "$ID" "$@"
|
hydra update oauth2-client --endpoint http://hydra:4445 "$$ID" "$$@"
|
||||||
else
|
else
|
||||||
echo "Creating new client: $ID"
|
echo "Creating new client: $$ID"
|
||||||
hydra create oauth2-client --endpoint http://hydra:4445 --id "$ID" "$@"
|
hydra create oauth2-client --endpoint http://hydra:4445 --id "$$ID" "$$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user