# HG changeset patch # User Alain Mazy # Date 1740394316 -3600 # Node ID 93eb6ce17f6d4be289bba2f533b2b053138865bd # Parent ffa6e2388943937d2c485dfa24015d1d1aec433b added support for volview diff -r ffa6e2388943 -r 93eb6ce17f6d NEWS --- a/NEWS Thu Feb 06 15:57:49 2025 +0100 +++ b/NEWS Mon Feb 24 11:51:56 2025 +0100 @@ -3,7 +3,9 @@ * Allow using the auth-plugin together with "AuthenticationEnabled": true. https://discourse.orthanc-server.org/t/user-based-access-control-with-label-based-resource-access/5454 - +* Added a default permission for /auth/tokens/volview-viewer-publication +* New standard configuration "volview" + 2025-01-22 - v 0.8.2 ==================== diff -r ffa6e2388943 -r 93eb6ce17f6d Plugin/DefaultConfiguration.json --- a/Plugin/DefaultConfiguration.json Thu Feb 06 15:57:49 2025 +0100 +++ b/Plugin/DefaultConfiguration.json Mon Feb 24 11:51:56 2025 +0100 @@ -80,7 +80,7 @@ ["put", "^/auth/tokens/(download-instant-link)$", "all|download"], // share a link to open a study - ["put", "^/auth/tokens/(stone-viewer-publication|meddream-viewer-publication|osimis-viewer-publication|ohif-viewer-publication)$", "all|share"], + ["put", "^/auth/tokens/(stone-viewer-publication|meddream-viewer-publication|osimis-viewer-publication|ohif-viewer-publication|volview-viewer-publication)$", "all|share"], // uploads ["post", "^/instances$", "all|upload"], diff -r ffa6e2388943 -r 93eb6ce17f6d Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Thu Feb 06 15:57:49 2025 +0100 +++ b/Plugin/Plugin.cpp Mon Feb 24 11:51:56 2025 +0100 @@ -1431,6 +1431,13 @@ 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")); + } + } std::string checkedLevelString;