Skip to content

Commit ec24e69

Browse files
[ERSSUP-89806]-[]-[Re-added old AUTHORISED_APPLICATION business function to user restricted validation]-[JW]
1 parent 1cd667c commit ec24e69

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

proxies/live/apiproxy/targets/ers-target.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@
154154
<Flows>
155155
<Flow name="user-restricted-flow">
156156
<Condition>(accesstoken.auth_type == "user")</Condition>
157-
<Request><!--AUTHORISED_APPLICATION business function is not supported in user restricted flow --><Step>
157+
<Request><!--AUTHORISED_APPLICATION business functions are not supported in user restricted flow --><Step>
158158
<Name>RaiseFault.403Forbidden</Name>
159-
<Condition>(request.header.nhsd-ers-business-function == "PROVIDER_AUTHORISED_APPLICATION") or (request.header.nhsd-ers-business-function == "REFERRER_AUTHORISED_APPLICATION")</Condition>
159+
<Condition>(request.header.nhsd-ers-business-function == "PROVIDER_AUTHORISED_APPLICATION") or (request.header.nhsd-ers-business-function == "REFERRER_AUTHORISED_APPLICATION") or (request.header.nhsd-ers-business-function == "AUTHORISED_APPLICATION")</Condition>
160160
</Step> <Step>
161161
<Name>AssignMessage.Set.x-ers-access-mode-header-user-restricted</Name>
162162
</Step> <Step>

tests/integration/test_headers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ async def test_headers_on_echo_target(
7676
@pytest.mark.asyncio
7777
@pytest.mark.parametrize(
7878
"business_function",
79-
["PROVIDER_AUTHORISED_APPLICATION", "REFERRER_AUTHORISED_APPLICATION"],
79+
[
80+
"PROVIDER_AUTHORISED_APPLICATION",
81+
"REFERRER_AUTHORISED_APPLICATION",
82+
"AUTHORISED_APPLICATION",
83+
],
8084
)
8185
async def test_headers_on_echo_target_with_app_restricted_business_function(
8286
self, business_function, authenticate_user, service_url

0 commit comments

Comments
 (0)