/grails-app/controllers/LogoutController.groovy
Groovy | 12 lines | 6 code | 2 blank | 4 comment | 0 complexity | 437e62d4517292d3d47eba4ab2dc8f6d MD5 | raw file
1import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils 2 3class LogoutController { 4 5 /** 6 * Index action. Redirects to the Spring security logout uri. 7 */ 8 def index = { 9 // TODO put any pre-logout code here 10 redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl // '/j_spring_security_logout' 11 } 12}