changeset 65:a89e1fcf56b1

new oe2 standard configuration
author Alain Mazy <am@osimis.io>
date Thu, 16 Feb 2023 17:57:25 +0100
parents 729f02c2eed7
children b7fd466764cc
files NEWS Plugin/Plugin.cpp
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Wed Nov 16 15:36:25 2022 +0100
+++ b/NEWS	Thu Feb 16 17:57:25 2023 +0100
@@ -1,3 +1,5 @@
+* new "orthanc-explorer-2" StandardConfigurations
+
 2022-11-16 - v 0.4.1
 ====================
 
--- a/Plugin/Plugin.cpp	Wed Nov 16 15:36:25 2022 +0100
+++ b/Plugin/Plugin.cpp	Thu Feb 16 17:57:25 2023 +0100
@@ -354,11 +354,21 @@
           if (standardConfigurations.find("stone-webviewer") != standardConfigurations.end())
           {
             uncheckedFolders_.push_back("/stone-webviewer/");
-            uncheckedResources_.insert("/system");
+            uncheckedResources_.insert("/system");        // for Stone to check that Orthanc is the server providing the data
+            uncheckedResources_.insert("/tools/lookup");  // for Downloads  (we consider that having access to tools/lookup can not give information about other patients/studies since it only return IDs, no patient data)
 
             tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization"));
           }
 
+          if (standardConfigurations.find("orthanc-explorer-2") != standardConfigurations.end())
+          {
+            uncheckedFolders_.push_back("/ui/app/");
+            uncheckedResources_.insert("/ui/app/configuration");        // for the UI to know, i.e. if Keycloak is enabled or not
+
+            tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization"));  // for basic-auth
+            tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "token"));          // for keycloak
+          }
+
         }
 
         std::string checkedLevelString;