Add support for SUS_USERCODE header in LoggingFilter

The LoggingFilter now checks for the 'SUS_USERCODE' header if the user ID is not found in previous headers. This improves compatibility with clients that use this header for user identification.
dev-pending-01-02-2026
Naeem Ullah 7 days ago
parent 9e09106f84
commit 29d52dc567

@ -73,6 +73,9 @@ public class LoggingFilter extends OncePerRequestFilter {
if ((userId == null || userId.isEmpty()) && request.getHeader("X-USER-ID") != null) { if ((userId == null || userId.isEmpty()) && request.getHeader("X-USER-ID") != null) {
userId = request.getHeader("X-USER-ID"); userId = request.getHeader("X-USER-ID");
} }
if (userId == null || userId.isEmpty()) {
userId = request.getHeader("SUS_USERCODE");
}
if (userId == null || userId.isEmpty()) { if (userId == null || userId.isEmpty()) {
userId = "NA"; userId = "NA";

Loading…
Cancel
Save