posted 11 years ago
Hi,
I have a small question regarding the SecurityContext update.
I noticed that when I use the following lines the SecurityContext is not really (or never ???) updated :
However, if i use the following lines, the SecurityContext is systematically updated :
So, the line SecurityContextHolder.getContext().setAuthentication(auth); does correctly update the security context.
But aren't these two ways of doing the same thing ?
Why does the first method does not work ?
Thanks for enlightening me.