From 9d32dec62c9363f25c85ebad986e2b8b944ac689 Mon Sep 17 00:00:00 2001 From: Tobias Koch Date: Thu, 8 Aug 2024 13:31:00 +0200 Subject: [PATCH] Remove log statement --- .../rest/security/QBiCTokenAuthenticationFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest-api/src/main/java/life/qbic/data_download/rest/security/QBiCTokenAuthenticationFilter.java b/rest-api/src/main/java/life/qbic/data_download/rest/security/QBiCTokenAuthenticationFilter.java index 1558f36..48139e3 100644 --- a/rest-api/src/main/java/life/qbic/data_download/rest/security/QBiCTokenAuthenticationFilter.java +++ b/rest-api/src/main/java/life/qbic/data_download/rest/security/QBiCTokenAuthenticationFilter.java @@ -68,9 +68,10 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse return; } var authentication = new QBiCTokenAuthenticationRequest(token); - logger.trace("Trying to authenticate token " + authentication.getToken()); + logger.trace("Trying to authenticate token."); Authentication authenticatedAuthentication = authenticationManager.authenticate(authentication); // We need to save the authentication to the context as described in https://github.com/spring-projects/spring-security/issues/12758#issuecomment-1443729881 + logger.trace("Successfully authenticated token."); SecurityContext context = securityContextHolderStrategy.createEmptyContext(); context.setAuthentication(authenticatedAuthentication); securityContextHolderStrategy.setContext(context);