开发者

spring-security and jsf

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜