siacali removed a comment on issue #455: GUACAMOLE-361: CAS global logout
URL: https://github.com/apache/guacamole-client/pull/455#issuecomment-562883380
 
 
   > @siacali, is the goal here simply to redirect the user to a specific URL 
when they are logged out? If so, it's probably easier and cleaner to:
   > 
   > 1. Handle the `guacLogout` event that's broadcast on the client side upon 
logout: 
https://github.com/apache/guacamole-client/blob/5ce0c0f0358096d87e19c7decdb4d6dfd21aeff5/guacamole/src/main/webapp/app/auth/service/authenticationService.js#L294
   > 2. Expose a REST service from within the CAS extension which allows you to 
retrieve the logout URL.
   
   @mike-jumper, Thank you Mike.  I appreciate the direction.  I've tried to 
set this up in the login controller (the window.confirm is just debugging 
code), but it never seems to get called.  Any clue as to what I'm missing here?
   ```
   angular.module('guacCAS').controller('guacCASController', ['$scope',
   
       function guacCASController($scope) {
   
           // set up a listener to handle logouts
           $scope.$on('guacLogout', function() {
                window.confirm("Got Logout event");
           });
           // Redirect to authorization URI
           window.location = $scope.field.authorizationURI;
   }]);
    ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to