Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Commit 3b255a8

Browse files
committed
Try fix the failing curl
1 parent 6ef655c commit 3b255a8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/idam-client-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ XUI_CLIENT_ID="xui_webapp"
1010
XUI_CLIENT_SECRET="xui_webapp_secret"
1111
BIN_FOLDER=$($(dirname "$0")/probate-dev-env-realpath)
1212

13-
authToken=$(curl -s -H 'Content-Type: application/x-www-form-urlencoded' -XPOST "${IDAM_URI}/loginUser?[email protected]&password=Ref0rmIsFun" | docker run --rm --interactive stedolan/jq -r .api_auth_token)
13+
authToken=$(curl -s -X POST "${IDAM_URI}/loginUser" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "password=Ref0rmIsFun&[email protected]" | docker run --rm --interactive stedolan/jq -r .api_auth_token)
1414

1515
echo "authtoken is ${authToken}"
1616

bin/idam-role-assignable.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ -z "$role" ]
99
echo "Usage: ./idam-role.sh role [role] [description]"
1010
exit 1
1111
fi
12-
authToken=$(curl -s -H 'Content-Type: application/x-www-form-urlencoded' -XPOST "${IDAM_URI}/loginUser?[email protected]&password=Ref0rmIsFun" | docker run --rm --interactive stedolan/jq -r .api_auth_token)
12+
authToken=$(curl -s -X POST "${IDAM_URI}/loginUser" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "password=Ref0rmIsFun&[email protected]" | docker run --rm --interactive stedolan/jq -r .api_auth_token)
1313

1414
curl --request POST \
1515
--url "${IDAM_URI}/roles" \

bin/idam-role.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ -z "$role" ]
99
echo "Usage: ./idam-role.sh role [role] [description]"
1010
exit 1
1111
fi
12-
authToken=$(curl -s -H 'Content-Type: application/x-www-form-urlencoded' -XPOST "${IDAM_URI}/loginUser?[email protected]&password=Ref0rmIsFun" | docker run --rm --interactive stedolan/jq -r .api_auth_token)
12+
authToken=$(curl -s -X POST "${IDAM_URI}/loginUser" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "password=Ref0rmIsFun&[email protected]" | docker run --rm --interactive stedolan/jq -r .api_auth_token)
1313

1414
curl --request POST \
1515
--url "${IDAM_URI}/roles" \

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hmcts/probate-dev-env",
3-
"version": "1.1.14",
3+
"version": "1.1.15",
44
"description": "Scripts to set up the Probate development environment",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)