From 293318d1ef5f2b97164cb0e225ed419039785fd6 Mon Sep 17 00:00:00 2001 From: Ilayda Cansin Koc Date: Thu, 6 Jun 2024 14:33:00 +0000 Subject: [PATCH] chore: Update test_client.sh to use OIDC_CLIENT_ID from .env file Signed-off-by: Ilayda Cansin Koc --- test_client.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test_client.sh b/test_client.sh index b83b344..0ae5774 100755 --- a/test_client.sh +++ b/test_client.sh @@ -10,22 +10,10 @@ client=$(docker run --rm -it \ --scope openid \ --redirect-uri "http://localhost:3000/api/auth/callback/oidc" \ -e http://hydra:4445 \ - --token-endpoint-auth-method client_secret_post \ --format json ) echo $client -client_id=$(echo $client | jq -r '.client_id') - - -env_file="./vclogin/.env" - -if grep -q "OIDC_CLIENT_ID=" "$env_file"; then - sed -i "s/^OIDC_CLIENT_ID=.*/OIDC_CLIENT_ID=$client_id/" "$env_file" -else - echo "OIDC_CLIENT_ID=$client_id" >> "$env_file" -fi - docker run --rm -it \ --network ory-hydra-net \ -p 9010:9010 \