Skip to content

Commit f420b7e

Browse files
NPA-4699: Align blocked resources for different auths with confluence table
1 parent c1dc99c commit f420b7e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

proxies/live/apiproxy/resources/py/check-app-enabled-endpoint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
blocked_resources = [
55
("/fhir/r4/relatedperson", "get"),
6+
("/fhir/r4/questionnaire", "get"),
67
("/fhir/r4/questionnaireresponse", "post"),
8+
("/fhir/r4/questionnaireresponse", "get"),
9+
("/fhir/r4/consent", "post"),
10+
("/fhir/r4/consent", "patch"),
711
]
812

913
auth_forbidden = False

proxies/live/apiproxy/resources/py/check-user-enabled-endpoint.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
request_verb = flow.getVariable("request.verb").lower()
44

55
if auth_level == "p9":
6-
blocked_resources = [("/fhir/r4/consent", "post"), ("/fhir/r4/consent", "patch")]
6+
blocked_resources = [
7+
("/fhir/r4/questionnaire", "get"),
8+
("/fhir/r4/consent", "post"),
9+
]
710
elif auth_level == "all3":
811
blocked_resources = [("/fhir/r4/questionnaireresponse", "post")]
912
else:

0 commit comments

Comments
 (0)