SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
I am trying to get access to the currently logged in user, but when I call SecurityContextHolder.getContext().getAuthentication(), the Authentication returned is null. I am assuming the user is logged in since they have access to the secure page I am testing, but I don't know how to tell for sure

Re: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lukasz Lenart
2010/3/17 Lance Hill la...@baldhead.com: Any hints about why SecurityContextHolder.getContext().getAuthentication() would return a null? Spring version? Configuration? Did you try the simplest possible setup? Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010

RE: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
, March 17, 2010 11:52 AM To: Struts Users Mailing List Subject: Re: SecurityContextHolder.getContext().getAuthentication() returning null 2010/3/17 Lance Hill la...@baldhead.com: Any hints about why SecurityContextHolder.getContext().getAuthentication() would return a null? Spring version

RE: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Hoying, Ken
...@gmail.com Subject: RE: SecurityContextHolder.getContext().getAuthentication() returning null I'm using Spring 3/Spring Security 3. I tried using security:authentication property=principal.username/ on the protected page and the username actually appears when I go directly to http://localhost