Class LogoutController


  • @Controller
    public class LogoutController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String logout​(javax.servlet.http.HttpSession session)
      Handle logout by revoking the access token and invalidating the session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogoutController

        public LogoutController()
    • Method Detail

      • logout

        @GetMapping("/logout")
        public java.lang.String logout​(javax.servlet.http.HttpSession session)
        Handle logout by revoking the access token and invalidating the session.
        Parameters:
        session - the session
        Returns:
        the redirection to login view