-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/pip/certifi-2023.7.22
- Loading branch information
Showing
36 changed files
with
337 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
variables: | ||
service_name: gp-connect-user-permissions | ||
short_service_name: gcup | ||
service_base_path: gp-connect-user-permissions/FHIR/R4 | ||
service_base_path: gp-connect/patient-facing/user-permissions | ||
pr_number: ${{ split(variables['Build.SourceBranch'], '/')[2] }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
proxies/live/apiproxy/policies/AssignMessage.AddAsidHeader.xml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
proxies/live/apiproxy/policies/AssignMessage.AddIssuerHeader.xml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
proxies/live/apiproxy/policies/AssignMessage.AddUserIdHeader.xml
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
proxies/live/apiproxy/policies/AssignMessage.SetStatusResponse.xml
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
proxies/live/apiproxy/policies/GenerateJWT.PDSClientAssertion.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<GenerateJWT async="false" continueOnError="false" enabled="true" name="GenerateJWT.PDSClientAssertion"> | ||
<DisplayName>GenerateJWT.PDSClientAssertion</DisplayName> | ||
<Algorithm>RS512</Algorithm> | ||
<PrivateKey> | ||
<Value ref="private.pds_jwt"/> | ||
<Id ref="pds_kid_config"/> | ||
</PrivateKey> | ||
<Subject ref="pds_client_id_config"/> | ||
<Issuer ref="pds_client_id_config"/> | ||
<Audience ref="pds_audience_config"/> | ||
<ExpiresIn>5m</ExpiresIn> | ||
<OutputVariable>pds_client_assertion</OutputVariable> | ||
</GenerateJWT> |
6 changes: 6 additions & 0 deletions
6
proxies/live/apiproxy/policies/JavaScript.GetPDSAccessToken.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Javascript async="false" continueOnError="false" enabled="true" timeLimit="200" name="JavaScript.GetPDSAccessToken"> | ||
<DisplayName>JavaScript.GetPDSAccessToken.xml</DisplayName> | ||
<Properties/> | ||
<ResourceURL>jsc://GetPDSAccessToken.js</ResourceURL> | ||
</Javascript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Javascript async="false" continueOnError="false" enabled="true" timeLimit="200" name="JavaScript.SetPDSConfig"> | ||
<DisplayName>JavaScript.SetPDSConfig</DisplayName> | ||
<Properties/> | ||
<ResourceURL>jsc://SetPDSConfig.js</ResourceURL> | ||
</Javascript> |
9 changes: 9 additions & 0 deletions
9
proxies/live/apiproxy/policies/KeyValueMapOperations.GetPDSConfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KeyValueMapOperations.GetPDSConfig" mapIdentifier="{{ GP_CONNECT_CONFIG }}"> | ||
<DisplayName>KeyValueMapOperations.GetPDSConfig</DisplayName> | ||
<Get assignTo="private.pds_config"> | ||
<Key> | ||
<Parameter>PDS</Parameter> | ||
</Key> | ||
</Get> | ||
</KeyValueMapOperations> |
8 changes: 8 additions & 0 deletions
8
proxies/live/apiproxy/policies/KeyValueMapOperations.GetPDSSecureVariables.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KeyValueMapOperations.GetPDSSecureVariables" mapIdentifier="{{ GP_CONNECT_CONFIG_ENCRYPTED }}"> | ||
<Get assignTo="private.pds_jwt" index="1"> | ||
<Key> | ||
<Parameter>PDS_private_key</Parameter> | ||
</Key> | ||
</Get> | ||
</KeyValueMapOperations> |
10 changes: 10 additions & 0 deletions
10
proxies/live/apiproxy/policies/LookupCache.PDSAccessToken.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<LookupCache async="false" continueOnError="false" enabled="true" name="LookupCache.PDSAccessToken"> | ||
<DisplayName>LookupCache.PDSAccessToken</DisplayName> | ||
<Properties/> | ||
<Scope>Exclusive</Scope> | ||
<CacheKey> | ||
<KeyFragment>PDSAccessToken</KeyFragment> | ||
</CacheKey> | ||
<AssignTo>PDSAccessToken</AssignTo> | ||
</LookupCache> |
13 changes: 13 additions & 0 deletions
13
proxies/live/apiproxy/policies/PopulateCache.PDSAccessToken.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<PopulateCache async="false" continueOnError="false" enabled="true" name="PopulateCache.PDSAccessToken"> | ||
<DisplayName>PopulateCache.PDSAccessToken</DisplayName> | ||
<Properties/> | ||
<Scope>Exclusive</Scope> | ||
<CacheKey> | ||
<KeyFragment>PDSAccessToken</KeyFragment> | ||
</CacheKey> | ||
<ExpirySettings> | ||
<TimeoutInSec>300</TimeoutInSec> | ||
</ExpirySettings> | ||
<Source>PDSAccessToken</Source> | ||
</PopulateCache> |
10 changes: 0 additions & 10 deletions
10
proxies/live/apiproxy/policies/RaiseFault.400BadRequest.xml
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
proxies/live/apiproxy/policies/ServiceCallout.AuthenticateForPDS.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<ServiceCallout async="false" continueOnError="false" enabled="true" name="ServiceCallout.AuthenticateForPDS"> | ||
<DisplayName>ServiceCallout.AuthenticateForPDS</DisplayName> | ||
<Properties/> | ||
<Request clearPayload="true" variable="AuthRequest"> | ||
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> | ||
<Set> | ||
<Verb>POST</Verb> | ||
<Headers> | ||
<Header name="Content-Type">application/x-www-form-urlencoded</Header> | ||
<Header name="Connection">keep-alive</Header> | ||
<Header name="accept">*/*</Header> | ||
<Header name="accept-encoding">gzip, deflate, br</Header> | ||
<Header name="cache-control">no-cache</Header> | ||
<Header name="user-agent">APIM</Header> | ||
</Headers> | ||
<FormParams> | ||
<FormParam name="client_assertion">{pds_client_assertion}</FormParam> | ||
<FormParam name="client_assertion_type">urn:ietf:params:oauth:client-assertion-type:jwt-bearer</FormParam> | ||
<FormParam name="grant_type">client_credentials</FormParam> | ||
</FormParams> | ||
</Set> | ||
</Request> | ||
<Response>PDSAuthResponse</Response> | ||
<HTTPTargetConnection> | ||
<URL>https://int.api.service.nhs.uk/oauth2/token</URL> | ||
</HTTPTargetConnection> | ||
<Timeout>20000</Timeout> | ||
</ServiceCallout> |
22 changes: 22 additions & 0 deletions
22
proxies/live/apiproxy/policies/ServiceCallout.GetODSCode.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<ServiceCallout async="false" continueOnError="false" enabled="true" name="ServiceCallout.GetODSCode"> | ||
<DisplayName>ServiceCallout.GetODSCode</DisplayName> | ||
<Properties/> | ||
<Request clearPayload="true" variable="PDSRequest"> | ||
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> | ||
<Set> | ||
<Verb>GET</Verb> | ||
<Headers> | ||
<Header name="accept">application/fhir+json</Header> | ||
<Header name="authorization">Bearer {PDSAccessToken}</Header> | ||
<Header name="X-Request-ID">{x_request_id}</Header> | ||
</Headers> | ||
<Path>/Patient/{nhs_number}</Path> | ||
</Set> | ||
</Request> | ||
<Response>PDSResponse</Response> | ||
<HTTPTargetConnection> | ||
<URL>https://int.api.service.nhs.uk/personal-demographics/FHIR/R4</URL> | ||
</HTTPTargetConnection> | ||
<Timeout>20000</Timeout> | ||
</ServiceCallout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.