changeset 213:93eb6ce17f6d

added support for volview
author Alain Mazy <am@orthanc.team>
date Mon, 24 Feb 2025 11:51:56 +0100 (5 months ago)
parents ffa6e2388943
children a45ba8f12791
files NEWS Plugin/DefaultConfiguration.json Plugin/Plugin.cpp
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Feb 06 15:57:49 2025 +0100
+++ b/NEWS	Mon Feb 24 11:51:56 2025 +0100
@@ -3,7 +3,9 @@
 
 * Allow using the auth-plugin together with "AuthenticationEnabled": true.
   https://discourse.orthanc-server.org/t/user-based-access-control-with-label-based-resource-access/5454
-  
+* Added a default permission for /auth/tokens/volview-viewer-publication
+* New standard configuration "volview"
+
 
 2025-01-22 - v 0.8.2
 ====================
--- a/Plugin/DefaultConfiguration.json	Thu Feb 06 15:57:49 2025 +0100
+++ b/Plugin/DefaultConfiguration.json	Mon Feb 24 11:51:56 2025 +0100
@@ -80,7 +80,7 @@
             ["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|ohif-viewer-publication)$", "all|share"],
+            ["put", "^/auth/tokens/(stone-viewer-publication|meddream-viewer-publication|osimis-viewer-publication|ohif-viewer-publication|volview-viewer-publication)$", "all|share"],
 
             // uploads
             ["post", "^/instances$", "all|upload"],
--- a/Plugin/Plugin.cpp	Thu Feb 06 15:57:49 2025 +0100
+++ b/Plugin/Plugin.cpp	Mon Feb 24 11:51:56 2025 +0100
@@ -1431,6 +1431,13 @@
             tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization"));
           }
 
+          if (standardConfigurations.find("volview") != standardConfigurations.end())
+          {
+            uncheckedFolders_.push_back("/volview/");
+
+            tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization"));
+          }
+
         }
 
         std::string checkedLevelString;