# HG changeset patch
# User Alain Mazy <am@osimis.io>
# Date 1676566645 -3600
# Node ID a89e1fcf56b137e6cb11cee371cfada6a1f78b77
# Parent  729f02c2eed73f5514f6e9ca86eea5a2f29e6904
new oe2 standard configuration

diff -r 729f02c2eed7 -r a89e1fcf56b1 NEWS
--- 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
 ====================
 
diff -r 729f02c2eed7 -r a89e1fcf56b1 Plugin/Plugin.cpp
--- 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;