Mercurial > hg > orthanc-authorization
changeset 146:f294a3c6dbe6
Added 2 new default permissions for dicom-web (get and post on dicom-web/studies)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 13 Feb 2024 11:24:07 +0100 |
parents | 8c86b459b3a5 |
children | ad189440edcf |
files | NEWS Plugin/DefaultConfiguration.json TODO UnitTestsSources/UnitTestsMain.cpp |
diffstat | 4 files changed, 26 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Wed Dec 20 14:55:16 2023 +0100 +++ b/NEWS Tue Feb 13 11:24:07 2024 +0100 @@ -1,3 +1,9 @@ +Pending changes in the mainline +=============================== + +* Added 2 new default permissions for dicom-web (get and post on dicom-web/studies). + + 2023-12-19 - v 0.6.2 ====================
--- a/Plugin/DefaultConfiguration.json Wed Dec 20 14:55:16 2023 +0100 +++ b/Plugin/DefaultConfiguration.json Tue Feb 13 11:24:07 2024 +0100 @@ -74,6 +74,7 @@ // uploads ["post", "^/instances$", "all|upload"], + ["post" , "^/DICOM_WEB_ROOT/studies$", "all|upload"], // monitor jobs you have created ["get" , "^/jobs/([a-f0-9-]+)$", "all|send|modify|anonymize|q-r-remote-modalities"], @@ -87,7 +88,8 @@ ["post", "^/modalities/(.*)/move$", "all|q-r-remote-modalities"], ["get" , "^/DICOM_WEB_ROOT/servers$", "all|send|q-r-remote-modalities"], ["get" , "^/DICOM_WEB_ROOT/(servers)/(.*)/stow$", "all|send"], - + ["get" , "^/DICOM_WEB_ROOT/studies$", "all|view"], + // modifications/anonymization ["post", "^/(patients|studies|series|instances)/([a-f0-9-]+)/(modify|merge)(.*)$", "all|modify"], ["post", "^/(patients|studies|series|instances)/([a-f0-9-]+)/anonymize(.*)$", "all|anonymize"],
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TODO Tue Feb 13 11:24:07 2024 +0100 @@ -0,0 +1,1 @@ +- support dicom-json source in OHIF plugin: https://discourse.orthanc-server.org/t/authantication-not-working-for-orthanc-explorer-2/4238/11 \ No newline at end of file
--- a/UnitTestsSources/UnitTestsMain.cpp Wed Dec 20 14:55:16 2023 +0100 +++ b/UnitTestsSources/UnitTestsMain.cpp Tue Feb 13 11:24:07 2024 +0100 @@ -172,6 +172,22 @@ parser.Parse(accesses, "/system", noGetArguments.GetMap()); ASSERT_TRUE(IsAccessing(accesses, AccessLevel_System, "/system")); + accesses.clear(); + parser.Parse(accesses, "/instances", noGetArguments.GetMap()); + ASSERT_TRUE(IsAccessing(accesses, AccessLevel_System, "/instances")); + + accesses.clear(); + parser.Parse(accesses, "/series", noGetArguments.GetMap()); + ASSERT_TRUE(IsAccessing(accesses, AccessLevel_System, "/series")); + + accesses.clear(); + parser.Parse(accesses, "/studies", noGetArguments.GetMap()); + ASSERT_TRUE(IsAccessing(accesses, AccessLevel_System, "/studies")); + + accesses.clear(); + parser.Parse(accesses, "/patients", noGetArguments.GetMap()); + ASSERT_TRUE(IsAccessing(accesses, AccessLevel_System, "/patients")); + ///////////////////////// dicom-web accesses.clear();