Skip to content

Commit 9800d9a

Browse files
committed
Set security schemas
Signed-off-by: Connor Avery <[email protected]>
1 parent 7f13f21 commit 9800d9a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/scripts/deploy_api.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ fi
7777
# Find and replace securitySchemes
7878
if [[ "${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}"
8081
else
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}"
8284
fi
8385

8486
# Find and replace the x-nhsd-apim.target.secret value

packages/specification/prescriptions-for-patients.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ paths:
209209
value:
210210
$ref: examples/GetMyPrescriptions/Bundle/error/error-500.json
211211
components:
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

0 commit comments

Comments
 (0)