Hi,
in my test, ium using this lines to connect a user :
Authentication userAuthentication = new UsernamePasswordAuthenticationToken("jonh","boul", AuthorityUtils.NO_AUTHORITIES);
SecurityContextHolder.getContext().setAuthentication(userAuthentication);
Is there's a way to add a listener that will just log in the console "success" (i will do more in real)