I recently moved from the JSecurity plugin to Spring Security. How do I get the authenticated user from within my controllers?
Use this code:
if (springSecurityService.isLoggedIn()){ println "Logged In" }