Not able to access securityContext from http filters why ?
I have http filters in position. After user logs in its authentication object is set in securityContextHolder as far as my knowledge is concerned.
When second request goes i have written my own filter which runs before any other filter runs. I am trying to access this authentication object my code for that is SecurityContextHolder.getContext().getAuthenticati on() but it returns me null.
this happens after authentication had taken place so i believe object will be in session. I was able to access some token object from session. SPRING_SECURITY_CONTEXT but its value i am getting null
How can I get this authentication object in my servlet filters ? any clue ?
Last edited by abhi patil; Feb 21st, 2012 at 12:15 AM.
In Rat race who ever wins or looses still remains the Rat.