This repository was archived by the owner on Dec 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ REDIRECT_URI="http://localhost:3451/oauth2redirect"
7
7
CLIENT_ID=" ccd_gateway"
8
8
CLIENT_SECRET=" ccd_gateway_secret"
9
9
10
- code=$( curl ${CURL_OPTS} -u " ${IMPORTER_USERNAME} :${IMPORTER_PASSWORD} " -XPOST " ${IDAM_URI} /oauth2/authorize?redirect_uri=${REDIRECT_URI} &response_type=code&client_id=${CLIENT_ID} " -d " " | jq -r .code)
10
+ code=$( curl ${CURL_OPTS} -u " ${IMPORTER_USERNAME} :${IMPORTER_PASSWORD} " -XPOST " ${IDAM_URI} /oauth2/authorize?redirect_uri=${REDIRECT_URI} &response_type=code&client_id=${CLIENT_ID} " -d " " | docker run --rm --interactive stedolan/ jq -r .code)
11
11
12
- curl ${CURL_OPTS} -H " Content-Type: application/x-www-form-urlencoded" -u " ${CLIENT_ID} :${CLIENT_SECRET} " -XPOST " ${IDAM_URI} /oauth2/token?code=${code} &redirect_uri=${REDIRECT_URI} &grant_type=authorization_code" -d " " | jq -r .access_token
12
+ curl ${CURL_OPTS} -H " Content-Type: application/x-www-form-urlencoded" -u " ${CLIENT_ID} :${CLIENT_SECRET} " -XPOST " ${IDAM_URI} /oauth2/token?code=${code} &redirect_uri=${REDIRECT_URI} &grant_type=authorization_code" -d " " | docker run --rm --interactive stedolan/ jq -r .access_token
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ REDIRECT_URI="http://localhost:3455/oauth2/callback"
7
7
CLIENT_ID=" xui_webapp"
8
8
CLIENT_SECRET=" xui_webapp_secret"
9
9
10
- code=$( curl ${CURL_OPTS} -u " ${IMPORTER_USERNAME} :${IMPORTER_PASSWORD} " -XPOST " ${IDAM_URI} /oauth2/authorize?redirect_uri=${REDIRECT_URI} &response_type=code&client_id=${CLIENT_ID} " -d " " | jq -r .code)
10
+ code=$( curl ${CURL_OPTS} -u " ${IMPORTER_USERNAME} :${IMPORTER_PASSWORD} " -XPOST " ${IDAM_URI} /oauth2/authorize?redirect_uri=${REDIRECT_URI} &response_type=code&client_id=${CLIENT_ID} " -d " " | docker run --rm --interactive stedolan/ jq -r .code)
11
11
12
- curl ${CURL_OPTS} -H " Content-Type: application/x-www-form-urlencoded" -u " ${CLIENT_ID} :${CLIENT_SECRET} " -XPOST " ${IDAM_URI} /oauth2/token?code=${code} &redirect_uri=${REDIRECT_URI} &grant_type=authorization_code" -d " " | jq -r .access_token
12
+ curl ${CURL_OPTS} -H " Content-Type: application/x-www-form-urlencoded" -u " ${CLIENT_ID} :${CLIENT_SECRET} " -XPOST " ${IDAM_URI} /oauth2/token?code=${code} &redirect_uri=${REDIRECT_URI} &grant_type=authorization_code" -d " " | docker run --rm --interactive stedolan/ jq -r .access_token
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @hmcts/probate-dev-env" ,
3
- "version" : " 1.1.16 " ,
3
+ "version" : " 1.1.17 " ,
4
4
"description" : " Scripts to set up the Probate development environment" ,
5
5
"main" : " index.js" ,
6
6
"bin" : {
You can’t perform that action at this time.
0 commit comments