Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

SecurityContextHolder.getContext().getAuthentication() returning null

Lance Hill

2010-03-17

Replies: Find Java Web Hosting

Author LoginPost Reply
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 since
I cannot access the Authentication object.



Any hints about why SecurityContextHolder.getContext().getAuthentication()
would return a null?

©2008 gg3721.com - Jax Systems, LLC, U.S.A.