File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 7777# Find and replace securitySchemes
7878if [[ " ${APIGEE_ENVIRONMENT} " == " prod" ]]; then
7979 jq ' .components.securitySchemes."nhs-cis2-aal3" = {"$ref": "https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-cis2-aal3"}' " ${SPEC_PATH} " > temp.json && mv temp.json " ${SPEC_PATH} "
80+ jq ' .components.securitySchemes."nhs-login-p9" = {"$ref": "https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9"}' " ${SPEC_PATH} " > temp.json && mv temp.json " ${SPEC_PATH} "
8081else
8182 jq ' .components.securitySchemes."nhs-cis2-aal3" = {"$ref": "https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/nhs-cis2-aal3"}' " ${SPEC_PATH} " > temp.json && mv temp.json " ${SPEC_PATH} "
83+ jq ' .components.securitySchemes."nhs-login-p9" = {"$ref": "https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9"}' " ${SPEC_PATH} " > temp.json && mv temp.json " ${SPEC_PATH} "
8284fi
8385
8486# Find and replace the x-nhsd-apim.target.secret value
Original file line number Diff line number Diff line change @@ -209,6 +209,9 @@ paths:
209209 value :
210210 $ref : examples/GetMyPrescriptions/Bundle/error/error-500.json
211211components :
212+ securitySchemes :
213+ nhs-login-p9 :
214+ $ref : https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9
212215 parameters :
213216 BearerAuthorisation :
214217 in : header
You can’t perform that action at this time.
0 commit comments