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?