Changeset 1053

Show
Ignore:
Timestamp:
03-11-10 10:48:53 (3 years ago)
Author:
robert@…
Message:

Fixed a bug in the remote logout call.

Location:
trunk/grails-app/controllers
Files:
2 modified

Legend:

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

    r1036 r1053  
    44 
    55class LogoutController { 
    6  
     6        def AuthenticationService 
     7         
    78        /** 
    89         * Index action. Redirects to the Spring security logout uri. 
     
    1819 
    1920        def remote = { 
    20                 // Log out the remote user 
    21                 AuthenticationService.logOffRemotely( params.consumer, params.token ) 
     21                if( params.consumer || params.token ) { 
     22                        // Log out the remote user 
     23                        AuthenticationService.logOffRemotely( params.consumer, params.token ) 
     24                } 
    2225                 
    2326                // Try to rest the redirect url 
  • trunk/grails-app/controllers/RestController.groovy

    r1036 r1053  
    3131 
    3232        def AuthenticationService         
    33         def beforeInterceptor = [action:this.&auth,except:["isUser", "logOut"]] 
     33        def beforeInterceptor = [action:this.&auth,except:["isUser"]] 
    3434        def credentials 
    3535        def requestUser // = SecUser.findByUsername( "user" )