Mercurial > hg > orthanc-authorization
diff Plugin/Plugin.cpp @ 65:a89e1fcf56b1
new oe2 standard configuration
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 16 Feb 2023 17:57:25 +0100 |
parents | 222f0652025f |
children | b7fd466764cc |
line wrap: on
line diff
--- 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;