views:

118

answers:

1

Hi!

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 authentication pricipal as anonymous.

i try to fetch is like this: Authentication auth = SecurityContextHolder.getContext().getAuthentication();

A: 

HEy!

The problem was that i didn't add to the http in the security

Odelya

related questions