PDA

View Full Version : Access to logged in user/ Authentication object from public pages



lizzy
Feb 20th, 2009, 07:30 AM
Hi,
I have an application that contains some pages that are secure (you need to log in) and others that can be accessed without logging in.

I need access to Authentication in my "public page" too, but
SecurityContextHolder.getContext().getAuthenticati on() returns null in this page.

I have set filters="none" on the intercept-url for the public page.

What do I have to access the Authentication from this page?

Thanks :-)