Mercurial > hg > orthanc-authorization
diff Plugin/DefaultConfiguration.json @ 149:423531fb1200
SINGLE_RESOURCE_PATTERNS to facilitate api-key support
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 15 Feb 2024 16:30:21 +0100 |
parents | 20c638fa8b07 |
children | 9f686ee4b158 |
line wrap: on
line diff
--- a/Plugin/DefaultConfiguration.json Thu Feb 15 12:04:28 2024 +0100 +++ b/Plugin/DefaultConfiguration.json Thu Feb 15 16:30:21 2024 +0100 @@ -59,12 +59,13 @@ // elemental browsing in OE2 ["post", "^/tools/find$", "all|view"], ["get" , "^/(patients|studies|series|instances)(|/)", "all|view"], - ["get" , "^/(patients|studies|series|instances)/([a-f0-9-]+)$", "all|view"], - ["get" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/(studies|study|series|instances)$", "all|view"], - ["get" , "^/instances/([a-f0-9-]+)/(tags|header)$", "all|view"], ["get" , "^/statistics$", "all|view"], ["get" , "^/changes$", "all|view"], + // single resources patterns (SINGLE_RESOURCE_PATTERNS is an alias for all single resource patterns defined in https://orthanc.uclouvain.be/hg/orthanc-authorization/file/tip/Plugin/DefaultAuthorizationParser.cpp) + // (a user must have access to the route + have an authorized label to access the resource) + ["get" , "SINGLE_RESOURCE_PATTERNS", "all|view"], + // create links to open viewer or download resources ["put", "^/auth/tokens/(viewer-instant-link|meddream-instant-link)$", "all|view"], ["put", "^/auth/tokens/(download-instant-link)$", "all|download"], @@ -91,10 +92,6 @@ // DICOMWeb QIDO-RS ["get" , "^/DICOM_WEB_ROOT/(studies|series|instances)(|/)$", "all|view"], - // DICOMWeb WADO-RS (a user must have access to the route + have an authorized label) - ["get" , "^/DICOM_WEB_ROOT/studies/([.0-9]+)(|/series|/metadata)(|/)$", "all|view"], - ["get" , "^/DICOM_WEB_ROOT/studies/([.0-9]+)/series/([.0-9]+)(|/instances|/rendered|/metadata)(|/)$", "all|view"], - ["get" , "^/DICOM_WEB_ROOT/studies/([.0-9]+)/series/([.0-9]+)/instances/([.0-9]+)(|/|/frames/.*|/rendered|/metadata|/bulk/.*)(|/)$", "all|view"], // modifications/anonymization ["post", "^/(patients|studies|series|instances)/([a-f0-9-]+)/(modify|merge)(.*)$", "all|modify"], @@ -102,7 +99,6 @@ // labels ["get", "^/tools/labels$", "all|view|edit-labels"], - ["get" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/labels$", "all|view"], ["put" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/labels/(.*)$", "all|edit-labels"], ["delete" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/labels/(.*)$", "all|edit-labels"],