Class BroadleafAuthenticationSuccessRedirectStrategy

java.lang.Object
org.broadleafcommerce.common.web.security.BroadleafAuthenticationSuccessRedirectStrategy
All Implemented Interfaces:
org.springframework.security.web.RedirectStrategy

@Component("blAuthenticationSuccessRedirectStrategy") public class BroadleafAuthenticationSuccessRedirectStrategy extends Object implements org.springframework.security.web.RedirectStrategy
If the incoming request is an ajax request, the system will add the desired redirect path to the session and then redirect to the path configured for the redirectPath property.

It is assumed that the redirectPath will be picked up by the BroadleafRedirectController.

Author:
bpolster
  • Constructor Details

    • BroadleafAuthenticationSuccessRedirectStrategy

      public BroadleafAuthenticationSuccessRedirectStrategy()
  • Method Details

    • sendRedirect

      public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) throws IOException
      Specified by:
      sendRedirect in interface org.springframework.security.web.RedirectStrategy
      Throws:
      IOException
    • updateLoginErrorUrlForAjax

      public String updateLoginErrorUrlForAjax(String url)
    • getRedirectPath

      public String getRedirectPath()
    • setRedirectPath

      public void setRedirectPath(String redirectPath)
    • getRedirectStrategy

      public org.springframework.security.web.RedirectStrategy getRedirectStrategy()
    • setRedirectStrategy

      public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)