/grails-app/controllers/LogoutController.groovy

http://github.com/jdmr/mateo · Groovy · 12 lines · 6 code · 2 blank · 4 comment · 0 complexity · 437e62d4517292d3d47eba4ab2dc8f6d MD5 · raw file

  1. import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
  2. class LogoutController {
  3. /**
  4. * Index action. Redirects to the Spring security logout uri.
  5. */
  6. def index = {
  7. // TODO put any pre-logout code here
  8. redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl // '/j_spring_security_logout'
  9. }
  10. }