i am developing in JSF a Spring Security application. the login form is fine. however, when i try to retrieve the authentication object, in future code, i always get the 开发者_JAVA技巧authentication pricipal as anonymous.
i try to fetch is like this: Authentication auth = SecurityContextHolder.getContext().getAuthentication();
HEy!
The problem was that i didn't add to the http in the security
精彩评论