From fca68b264f3e8d99cf416b79c990f3a6d267453c Mon Sep 17 00:00:00 2001 From: David Hamill <109090521+davidhamill1-nhs@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:10:16 +0000 Subject: [PATCH 1/3] [GPCAPIM-0000]: Pass user info from the proxy (which handles the auth) to the backend, enabling us to understand who is calling us and pass that on to the GP provider system --- proxygen/x-nhsd-apim.template.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxygen/x-nhsd-apim.template.yaml b/proxygen/x-nhsd-apim.template.yaml index e8cba5a1..5396767f 100644 --- a/proxygen/x-nhsd-apim.template.yaml +++ b/proxygen/x-nhsd-apim.template.yaml @@ -11,3 +11,8 @@ x-nhsd-apim: security: type: mtls secret: + target-identity: + - name: cis2-uuid + - name: cis2-urid + - name: cis2-acr + - name: id-token From 7e00cfe2cbabd87840e4559b7cbf884268040722 Mon Sep 17 00:00:00 2001 From: David Hamill <109090521+davidhamill1-nhs@users.noreply.github.com> Date: Wed, 25 Feb 2026 22:07:14 +0000 Subject: [PATCH 2/3] [GPCAPIM-0000]: Fix indent error. --- proxygen/x-nhsd-apim.template.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxygen/x-nhsd-apim.template.yaml b/proxygen/x-nhsd-apim.template.yaml index 5396767f..54e0d984 100644 --- a/proxygen/x-nhsd-apim.template.yaml +++ b/proxygen/x-nhsd-apim.template.yaml @@ -11,8 +11,8 @@ x-nhsd-apim: security: type: mtls secret: - target-identity: - - name: cis2-uuid - - name: cis2-urid - - name: cis2-acr - - name: id-token + target-identity: + - name: cis2-uuid + - name: cis2-urid + - name: cis2-acr + - name: id-token From 2be9923d28163faad3916afdf87099de3c682919 Mon Sep 17 00:00:00 2001 From: David Hamill <109090521+davidhamill1-nhs@users.noreply.github.com> Date: Wed, 25 Feb 2026 22:12:02 +0000 Subject: [PATCH 3/3] [GPCAPIM-000]: Write out headers to confirm which ones have been sent (by APIM). --- gateway-api/src/gateway_api/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway-api/src/gateway_api/app.py b/gateway-api/src/gateway_api/app.py index 1f9dd807..58e56340 100644 --- a/gateway-api/src/gateway_api/app.py +++ b/gateway-api/src/gateway_api/app.py @@ -38,6 +38,7 @@ def get_app_port() -> int: @app.route("/patient/$gpc.getstructuredrecord", methods=["POST"]) def get_structured_record() -> Response: try: + print(f"Headers: {request.headers}", flush=True) get_structured_record_request = GetStructuredRecordRequest(request) controller = Controller() flask_response = controller.run(request=get_structured_record_request)