Class CustomLogoutHandler

  • All Implemented Interfaces:
    org.springframework.security.web.authentication.logout.LogoutHandler

    @Component
    public class CustomLogoutHandler
    extends Object
    implements org.springframework.security.web.authentication.logout.LogoutHandler
    Custom logout handler to support stateless sessions
    Author:
    Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
    • Constructor Detail

      • CustomLogoutHandler

        public CustomLogoutHandler()
    • Method Detail

      • logout

        public void logout​(javax.servlet.http.HttpServletRequest httpServletRequest,
                           javax.servlet.http.HttpServletResponse httpServletResponse,
                           org.springframework.security.core.Authentication authentication)
        This method removes the session salt from an eperson, this way the token won't be verified anymore
        Specified by:
        logout in interface org.springframework.security.web.authentication.logout.LogoutHandler
        Parameters:
        httpServletRequest -
        httpServletResponse -
        authentication -