changeset 75:57e98fc07ab2

default permissions
author Alain Mazy <am@osimis.io>
date Mon, 06 Mar 2023 11:34:18 +0100
parents aa73b10c2db9
children d301047ee3c4
files Plugin/DefaultConfiguration.json
diffstat 1 files changed, 15 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/DefaultConfiguration.json	Fri Mar 03 18:03:22 2023 +0100
+++ b/Plugin/DefaultConfiguration.json	Mon Mar 06 11:34:18 2023 +0100
@@ -49,19 +49,28 @@
         // You may test your regex in https://regex101.com/ by selecting .NET (C#) and removing the leading ^ and trailing $
         // The default configuration is suitable for Orthanc-Explorer-2 (see TBD sample)
         "Permissions" : [
+            ["post", "^/auth/tokens/decode$", ""],
+
             // elemental browsing in OE2
             ["post", "^/tools/find$", "all|view"],
-            ["get" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/(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"],
 
+            // 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"],
+
+            // share a link to open a study
+            ["put", "^/auth/tokens/(stone-viewer-publication|meddream-viewer-publication|osimis-viewer-publication)$", "all|share"],
+
+            // uploads
+            ["post", "^/instances$", "all|upload"],
+
             // monitor jobs you have created
             ["get" , "^/jobs/([a-f0-9-]+)$", "all|send|modify|anonymize|q-r-remote-modalities"],
 
-            // downloads: not functional yet, we need one-time-tokens
-            ["get" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/archive$", "all|download"],
-            ["get" , "^/(patients|studies|series|instances)/([a-f0-9-]+)/media$", "all|download"],
-
             // interacting with peers/modalities/dicomweb
             ["post", "^/(peers|modalities)/(.*)/store$", "all|send"],
             ["get" , "^/(peers|modalities)$", "all|send|q-r-remote-modalities"],
@@ -69,15 +78,12 @@
             ["post", "^/modalities/(.*)/query$", "all|q-r-remote-modalities"],
             ["get", "^/queries/([a-f0-9-]+)/answers$", "all|q-r-remote-modalities"],
             ["post", "^/modalities/(.*)/move$", "all|q-r-remote-modalities"],
+            ["get" , "^/DICOM_WEB_ROOT/servers$", "all|send|q-r-remote-modalities"],
             ["get" , "^/DICOM_WEB_ROOT/(servers)/(.*)/stow$", "all|send"],
 
-            // upload
-            ["post", "^/instances$", "all|upload"],
-
             // modifications/anonymization
             ["post", "^/(patients|studies|series|instances)/([a-f0-9-]+)/modify(.*)$", "all|modify"],
             ["post", "^/(patients|studies|series|instances)/([a-f0-9-]+)/anonymize(.*)$", "all|anonymize"]
-
         ]
     }
 }
\ No newline at end of file