开发者

spring-security and jsf

开发者 https://www.devze.com 2022-12-29 12:11 出处:网络
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

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

精彩评论

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