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

Commit 8b5e5e7

Browse files
authored
Merge pull request #32 from hmcts/fix_dev_env
Add ccd system user
2 parents 67050e4 + c488692 commit 8b5e5e7

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

bin/ccd-add-all-roles.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ binFolder=$($(dirname "$0")/probate-dev-env-realpath)
2222
(${binFolder}/idam-create-caseworker.sh caseworker,caseworker-probate,caseworker-probate-charity [email protected])
2323
(${binFolder}/idam-create-caseworker.sh caseworker,caseworker-probate,caseworker-probate-solicitor,pui-case-manager,pui-user-manager [email protected] Probate123 TestUser PBA)
2424
(${binFolder}/idam-create-caseworker.sh caseworker,caseworker-probate,caseworker-probate-solicitor,pui-case-manager,pui-user-manager [email protected] Probate123 TestUser PBAOrg2)
25+
(${binFolder}/idam-create-caseworker.sh caseworker [email protected])
2526

2627
(${binFolder}/ccd-add-role.sh payment)
2728
(${binFolder}/ccd-add-role.sh citizen)

bin/idam-client-setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ curl -XPOST \
2929
-H "Content-Type: application/json" \
3030
-d '{ "activationRedirectUrl": "", "allowedRoles": ["ccd-import", "caseworker", "caseworker-probate", "caseworker-probate-solicitor", "caseworker-probate-superuser", "pui-case-manager", "pui-user-manager"], "description": "xui_webapp", "label": "xui_webapp", "oauth2ClientId": "xui_webapp", "oauth2ClientSecret": "xui_webapp_secret", "oauth2RedirectUris": ["http://localhost:3455/oauth2/callback"], "oauth2Scope": "profile openid roles manage-user create-user", "onboardingEndpoint": "string", "onboardingRoles": ["ccd-import", "caseworker", "caseworker-probate", "caseworker-probate-solicitor", "caseworker-probate-superuser","pui-case-manager", "pui-user-manager" ], "selfRegistrationAllowed": true}'
3131

32+
curl -XPOST \
33+
${IDAM_URI}/services \
34+
-H "Authorization: AdminApiAuthToken ${authToken}" \
35+
-H "Content-Type: application/json" \
36+
-d '{ "activationRedirectUrl": "", "allowedRoles": [], "description": "ccd_data_store_api", "label": "ccd_data_store_api", "oauth2ClientId": "ccd_data_store_api", "oauth2ClientSecret": "idam_data_store_client_secret", "oauth2RedirectUris": ["http://ccd-data-store-api/oauth2redirect" ], "oauth2Scope": "profile openid roles manage-user", "selfRegistrationAllowed": false}'
37+
3238
#Create all the role
3339
$BIN_FOLDER/idam-role.sh caseworker
3440
$BIN_FOLDER/idam-role.sh caseworker-probate

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.10",
3+
"version": "1.1.11",
44
"description": "Scripts to set up the Probate development environment",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)