I am completing Spring Security implementation in Grails. This is my first implementation in Spring Security - I previously used Acegi.
Here is the problem I am having. In Acegi, I was able to get an authenticated user in the onInteractiveAuthenticationSuccessEvent () callback by accessing the SecurityContextHolder, getting the user principle, and then getting the “live” user from the database. In Spring Security, the SecurityContextHolder seems to be inaccessible - when I try to access it, I get low-level Grails complaints that there is no such method for such and such an object.
So my questions are:
Thanks Dan
source
share