I updated a system to Spring Security 6. Authentication is fetched with
authentication =SecurityContextHolder.getContext().getAuthentication();But after the update to Spring Security 6, this authentication object is no longer an instance of WindowsAuthenticationToken. It needs to be a WindowsAuthenticationToken to get the name of the user. So how can I get Waffle to work with Spring Security 6?