diff --git a/Api/src/main/java/com/catchyou/api/config/security/AccessDeniedFilter.java b/Api/src/main/java/com/catchyou/api/config/security/AccessDeniedFilter.java index 0000242..3bb9340 100644 --- a/Api/src/main/java/com/catchyou/api/config/security/AccessDeniedFilter.java +++ b/Api/src/main/java/com/catchyou/api/config/security/AccessDeniedFilter.java @@ -46,6 +46,7 @@ protected void doFilterInternal( if (authentication != null && authentication.isAuthenticated()) { log.error("Access denied for user: {} - Request URL: {} - Role : {}", authentication.getName(), request.getRequestURL(), authentication.getAuthorities()); } else { + log.error("Authentication: " + authentication); log.error("Access denied for anonymous user - Request URL: {}", request.getRequestURL()); } ErrorResponse access_denied =