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: specification/proxygen.yaml
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -431,15 +431,18 @@ info:
431
431
432
432
#### Target Identity Headers
433
433
434
-
Each item under `x-nhsd-apim.target-identity` is the name of an authentication mechanism for which you intend to pass identity headers through to the backend. Currently, only CIS2 authentication is supported.
434
+
Each item under `x-nhsd-apim.target-identity` is the name of an authentication mechanism for which you intend to pass identity headers through to the backend. Currently, CIS2 and NHS login authentication is supported.
435
435
436
-
Under the `x-nhsd-apim.target-identity.cis2` the `included` boolean will determine whether the identity headers will be present in the request to the backend.
436
+
Under the `cis2` and `nhs-login` block, the `included` boolean will determine whether the identity headers will be present in the request to the backend for the corresponding auth provider.
437
437
438
-
The individual header names are optional. In their absence, defaults of `NHSD-Session-URID` and `NHSD-Session-UUID` will be used.
438
+
The individual header names are optional. In their absence, the following defaults will be used:
The headers will have their values populated with the User ID and Role ID associated with the CIS2 authentication.
441
-
442
-
The User ID value is obtained from the access token in the request, with the Role ID value being obtained via the shared UserRoleServiceV2.
443
+
The headers will have their values populated using the auth token associated with the CIS2 or NHS login authentication.
444
+
445
+
The CIS2 UUID or NHS login NHS number value is obtained from the access token in the request. The Role ID value is obtained via the shared UserRoleServiceV2.
443
446
444
447
If the request to the _proxy_ includes the default Role ID header `NHSD-Session-URID`, this will flow through to the backend as the urid-header-name defined in your specification (or remain as the default header name, in the absence of a provided header name).
0 commit comments