Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. class LogoutController {
  2. def index = {
  3. println "IN LOGOUT CONTROLLER TRYING TO LOGOUT"
  4. redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl // '/j_spring_security_logout'
  5. }
  6.  
  7. def accessDenied = {
  8.  
  9. }
  10. }
  11.  
  12. grails.plugins.springsecurity.logout.afterLogoutUrl = 'https://login.test.com/cas/logout'
  13.  
  14. <g:link controller='Logout'>Logout</g:link>
  15.  
  16. class LogoutController {
  17. def index = {
  18. println "IN LOGOUT CONTROLLER TRYING TO LOGOUT"
  19. session.invalidate()
  20. redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl
  21. }
  22. }
  23.  
  24. logoutProcessService.process(params)
  25. redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUr
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement