Class AadB2cLogoutSuccessHandler

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

    public class AadB2cLogoutSuccessHandler
    extends org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
    Get the url of successful logout and handle the navigation on logout.
    • Field Summary

      • Fields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onLogoutSuccess​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
      A strategy that is called after a successful logout, to handle redirection or forwarding to the appropriate destination.
      • Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler

        determineTargetUrl, determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
    • Method Detail

      • onLogoutSuccess

        public void onLogoutSuccess​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    org.springframework.security.core.Authentication authentication)
                             throws IOException,
                                    javax.servlet.ServletException
        A strategy that is called after a successful logout, to handle redirection or forwarding to the appropriate destination.
        Specified by:
        onLogoutSuccess in interface org.springframework.security.web.authentication.logout.LogoutSuccessHandler
        Overrides:
        onLogoutSuccess in class org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
        Parameters:
        request - the http servlet reqoest
        response - the http servlet response
        authentication - the authentication
        Throws:
        IOException
        javax.servlet.ServletException