You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/instructions/copilot-instructions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This repository is for handling HTTP requests from "Consumer systems" and forwar
8
8
9
9
We use other NHSE services to assist in the validation and processing of the requests including PDS FHIR API for obtaining GP practice codes for the patient, SDS FHIR API for obtaining the "Provider system" details of that GP practice and Healthcare Worker FHIR API for obtaining details of the requesting practitioner using the "Consumer System" that will then be added to the forwarded request.
10
10
11
-
`make deploy` will build and start a container running Gateway API at `localhost:5000`.
11
+
`make deploy-dev` will build and start a container running Gateway API at `localhost:5000`.
12
12
13
13
After deploying the container locally, `make test` will run all tests and capture their coverage. Note: env variables control the use of stubs for the PDS FHIR API, SDS FHIR API, Healthcare Worker FHIR API and Provider system services.
The secrets are accessed through `make env-<int|int-pds|int-sds>` which sets the secrets required for PDS FHIR API and SDS FHIR API to `.env` file, which is then fed in to the locally deployed application through `make deploy`.
6
+
7
+
## PDS
8
+
9
+
PDS FHIR API requires [signed JWT for application-resrtictecd access](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/application-restricted-restful-apis-signed-jwt-authentication). As such, the following three secrets enable the Gateway API to authenticate:
10
+
11
+
*`.secrets/pds/api_token` - the API key of the application through which the Gateway API will consume NHSE APIs.
12
+
*`.secrets/pds/api_secret` - the private key of the public/private key pair created for application identified by `api_token`
13
+
*`.secrets/pds/api_kid` - the key identifier for the private/public key pair used for the `api_secret`.
14
+
15
+
## SDS
16
+
17
+
SDS FHIR API requires [API key authentication](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/application-restricted-restful-apis-api-key-authentication) for application-restricted access. As such, the only secret required is
18
+
19
+
*`.secrets/sds/api_token` - the API key of the application through which the Gateway API will consume NHSE APIs.
0 commit comments