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

Commit

Permalink
Merge pull request #32 from hmcts/fix_dev_env
Browse files Browse the repository at this point in the history
Add ccd system user
  • Loading branch information
nigeldunne authored Aug 9, 2021
2 parents 67050e4 + c488692 commit 8b5e5e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/ccd-add-all-roles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ binFolder=$($(dirname "$0")/probate-dev-env-realpath)
(${binFolder}/idam-create-caseworker.sh caseworker,caseworker-probate,caseworker-probate-charity [email protected])
(${binFolder}/idam-create-caseworker.sh caseworker,caseworker-probate,caseworker-probate-solicitor,pui-case-manager,pui-user-manager [email protected] Probate123 TestUser PBA)
(${binFolder}/idam-create-caseworker.sh caseworker,caseworker-probate,caseworker-probate-solicitor,pui-case-manager,pui-user-manager [email protected] Probate123 TestUser PBAOrg2)
(${binFolder}/idam-create-caseworker.sh caseworker [email protected])

(${binFolder}/ccd-add-role.sh payment)
(${binFolder}/ccd-add-role.sh citizen)
Expand Down
6 changes: 6 additions & 0 deletions bin/idam-client-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ curl -XPOST \
-H "Content-Type: application/json" \
-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}'

curl -XPOST \
${IDAM_URI}/services \
-H "Authorization: AdminApiAuthToken ${authToken}" \
-H "Content-Type: application/json" \
-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}'

#Create all the role
$BIN_FOLDER/idam-role.sh caseworker
$BIN_FOLDER/idam-role.sh caseworker-probate
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/probate-dev-env",
"version": "1.1.10",
"version": "1.1.11",
"description": "Scripts to set up the Probate development environment",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 8b5e5e7

Please sign in to comment.