AuthenticationCredentialsNotFoundException in Acegi
01 Apr 2006 18:49 - (0) comments
In a recently build application I use Acegi for security. But logins seemed to be unpredictable. After logging in I got logged out after clicking through a couple of random pages.
In the log I found the following exception: org.acegisecurity.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
After reading the documentation I cam to the conclusion that I missed the
HttpSessionContextIntegrationFilter filter. This filter exists to automatically copy the contents of a HttpSession attribute into the SecurityContextHolder and copy its contents back into the HttpSession for next request.
Comments
No comments allowed.