From c4f5888f99be30e99a60f634f9debfa124367463 Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Fri, 12 Jul 2024 16:47:36 +0200 Subject: [PATCH] fix:reset session tp cache (in case guest is active tp won't get updated) --- .../repository/server/authentication/ShibbolethServlet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/authentication/ShibbolethServlet.java b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/authentication/ShibbolethServlet.java index 7085c7e24..492c795f9 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/authentication/ShibbolethServlet.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/authentication/ShibbolethServlet.java @@ -45,6 +45,8 @@ import org.edu_sharing.service.authentication.EduAuthentication; import org.edu_sharing.service.authentication.SSOAuthorityMapper; import org.edu_sharing.service.authority.AuthorityServiceFactory; +import org.edu_sharing.service.toolpermission.ToolPermissionService; +import org.edu_sharing.service.toolpermission.ToolPermissionServiceFactory; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.context.ApplicationContext; import org.springframework.extensions.surf.util.URLDecoder; @@ -139,7 +141,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se } try { - + Objects.requireNonNull(ToolPermissionServiceFactory.getInstance()).invalidateSessionCache(); logger.info("no valid authinfo found in session. doing the repository shib auth"); logger.info("req.getCharacterEncoding():"+req.getCharacterEncoding());