Enhanced debug logging in SecurityConfig to include group names explicitly.

This commit is contained in:
Jan 2025-11-18 11:17:51 +01:00
parent e65f0deed2
commit 83e007088c

View file

@ -292,7 +292,7 @@ public class SecurityConfig {
}
if (user != null) {
user.getGroups().forEach(g -> log.debug("Local group: {}", g));
user.getGroups().forEach(g -> log.debug("Local group: {}", g.getName()));
user.getGroups().forEach(group -> mappedAuthorities.add(new SimpleGrantedAuthority("ROLE_" + group.getName().toUpperCase())));
userId = user.getId();
} else {