Open
Description
What problem are you trying to solve?
I've come across
if (authentication.getPrincipal() instanceof UserDetails) {
UserDetails springSecurityUser = (UserDetails) authentication.getPrincipal();
return springSecurityUser.getUsername();
}
which is currently not covered
Describe the solution you'd like
if (authentication.getPrincipal() instanceof UserDetails springSecurityUser) {
return springSecurityUser.getUsername();
}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog