# HG changeset patch # User Alain Mazy # Date 1697808554 -7200 # Node ID 8b123c2adb69e8230f22cb63b4ccb716ad38d55a # Parent dce43cba682437b54cdda23d084be167685846aa now overriding /tools/find and /tools/labels only if the auth-service is providing user profile diff -r dce43cba6824 -r 8b123c2adb69 NEWS --- a/NEWS Mon Sep 18 21:16:12 2023 +0200 +++ b/NEWS Fri Oct 20 15:29:14 2023 +0200 @@ -1,3 +1,9 @@ +Pending changes in the mainline +=============================== + +* now overriding /tools/find and /tools/labels only if the auth-service + is providing user profiles ("WebServiceUserProfileUrl" has been configured). + 23-09-18 - v 0.6.0 ================== diff -r dce43cba6824 -r 8b123c2adb69 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Mon Sep 18 21:16:12 2023 +0200 +++ b/Plugin/Plugin.cpp Fri Oct 20 15:29:14 2023 +0200 @@ -1305,6 +1305,8 @@ if (!urlUserProfile.empty()) { OrthancPlugins::RegisterRestCallback("/auth/user/profile", true); + OrthancPlugins::RegisterRestCallback("/tools/find", true); + OrthancPlugins::RegisterRestCallback("/tools/labels", true); } if (!urlTokenCreationBase.empty()) @@ -1312,10 +1314,6 @@ OrthancPlugins::RegisterRestCallback("/auth/tokens/(.*)", true); } - OrthancPlugins::RegisterRestCallback("/tools/find", true); - OrthancPlugins::RegisterRestCallback("/tools/labels", true); - - if (authorizationParser_.get() != NULL || permissionParser_.get() != NULL) { if (hasBasicAuthEnabled)