Mercurial > hg > orthanc-authorization
changeset 288:aea5fcc2b741
new standard configuration 'stl'
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Wed, 24 Sep 2025 09:12:23 +0200 |
parents | 0b0222d3a7f9 |
children | c84fe50cc125 |
files | NEWS Plugin/DefaultConfiguration.json Plugin/Plugin.cpp |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Thu Aug 28 09:46:10 2025 +0200 +++ b/NEWS Wed Sep 24 09:12:23 2025 +0200 @@ -3,6 +3,7 @@ * New default permissions to add/delete modalities through the Rest API https://discourse.orthanc-server.org/t/managing-modalities-using-the-rest-api-and-keycloak/6137 +* New standard configuration "stl" 2025-08-13 - v 0.10.1
--- a/Plugin/DefaultConfiguration.json Thu Aug 28 09:46:10 2025 +0200 +++ b/Plugin/DefaultConfiguration.json Wed Sep 24 09:12:23 2025 +0200 @@ -44,7 +44,8 @@ // "stone-webviewer", // "orthanc-explorer-2", // "ohif", - // "volview" + // "volview", + // "stl" // ], //"UncheckedResources" : [],
--- a/Plugin/Plugin.cpp Thu Aug 28 09:46:10 2025 +0200 +++ b/Plugin/Plugin.cpp Wed Sep 24 09:12:23 2025 +0200 @@ -2357,6 +2357,13 @@ tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization")); } + if (standardConfigurations.find("stl") != standardConfigurations.end()) + { + uncheckedFolders_.push_back("/stl/"); + + tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization")); + } + } std::string checkedLevelString;