changeset 207:88ba174ff553

new volview standard configuration
author Alain Mazy <am@orthanc.team>
date Tue, 21 Jan 2025 17:49:04 +0100
parents 49fcefaf4211
children 032194835063 7adf0b08f4c5
files NEWS Plugin/DefaultConfiguration.json Plugin/Plugin.cpp
diffstat 3 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Jan 20 11:41:37 2025 +0100
+++ b/NEWS	Tue Jan 21 17:49:04 2025 +0100
@@ -4,6 +4,8 @@
 * Fix forbidden access when the PatientID and StudyInstanceUID are identical.
 * Fix an error when WebServiceSettingsRolesUrl is not defined.
 * Now handling /tools/count-resources API route.
+* New standard configuration "volview" although Volview is not yet ready to support
+  the token: https://github.com/Kitware/VolView/issues/689
 
 
 2024-07-03 - v 0.8.1
--- a/Plugin/DefaultConfiguration.json	Mon Jan 20 11:41:37 2025 +0100
+++ b/Plugin/DefaultConfiguration.json	Tue Jan 21 17:49:04 2025 +0100
@@ -43,7 +43,8 @@
         //     "osimis-web-viewer",
         //     "stone-webviewer",
         //     "orthanc-explorer-2",
-        //     "ohif"
+        //     "ohif",
+        //     "volview"
         // ],
 
         //"UncheckedResources" : [],
--- a/Plugin/Plugin.cpp	Mon Jan 20 11:41:37 2025 +0100
+++ b/Plugin/Plugin.cpp	Tue Jan 21 17:49:04 2025 +0100
@@ -1420,6 +1420,15 @@
           if (standardConfigurations.find("ohif") != standardConfigurations.end())
           {
             uncheckedFolders_.push_back("/ohif/");
+
+            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"));
           }
 
         }