I recently moved from the JSecurity plugin to Spring Security. How do I get the authenticated user from within my controllers?
Nowadays, I think the way to do it is:
def user = getAuthenticatedUser()