Ignore:
Timestamp:
Nov 1, 2010, 4:49:52 PM (12 years ago)
Author:
robert@…
Message:

Fixed the random order of templates in the study pages (#135) and created a remote logout call (#158).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/authentication/LogoutController.groovy

    r976 r1036  
    99         */
    1010        def index = {
     11                if( params[ SpringSecurityUtils.securityConfig.successHandler.targetUrlParameter ] ) {
     12                        redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl + "?" + SpringSecurityUtils.securityConfig.successHandler.targetUrlParameter + '=' + params[ SpringSecurityUtils.securityConfig.successHandler.targetUrlParameter ] // '/j_spring_security_logout'
     13                } else {
     14                        redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl // '/j_spring_security_logout'
     15                }
    1116                // TODO  put any pre-logout code here
    12                 redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl // '/j_spring_security_logout'
     17        }
     18
     19        def remote = {
     20                // Log out the remote user
     21                AuthenticationService.logOffRemotely( params.consumer, params.token )
     22               
     23                // Try to rest the redirect url
     24                if( params[ SpringSecurityUtils.securityConfig.successHandler.targetUrlParameter ] ) {
     25                        redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl + "?" + SpringSecurityUtils.securityConfig.successHandler.targetUrlParameter + '=' + params[ SpringSecurityUtils.securityConfig.successHandler.targetUrlParameter ] // '/j_spring_security_logout'
     26                } else {
     27                        redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl // '/j_spring_security_logout'
     28                }
    1329        }
    1430}
Note: See TracChangeset for help on using the changeset viewer.