Class AdminExternalLoginStateFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.broadleafcommerce.openadmin.web.filter.AdminExternalLoginStateFilter
All Implemented Interfaces:
jakarta.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

@Deprecated public class AdminExternalLoginStateFilter extends org.springframework.web.filter.GenericFilterBean
Deprecated.
NO LONGER REQUIRED AND SHOULD NOT BE USED. SEE BroadleafAdminLdapUserDetailsMapper.

User: Kelly Tisdell Date: 6/19/12

This class provides a filter to be used with External Security Providers (e.g. LDAP). When authentication is performed against another system it is important to provision an admin user in Broadleaf and set up the appropriate roles. This class checks to see if a user exists and if not, creates one. It also replaces all roles associated with a user with roles that match their Authentication credentials. DO NOT USE THIS FILTER UNLESS YOU ARE AUTHENTICATING AGAINST AN EXTERNAL SOURCE SUCH AS LDAP.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    Deprecated.
     

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain)
    Deprecated.
     
    protected void
    Deprecated.
     

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BLC_ADMIN_PROVISION_USER_CHECK

      protected static final String BLC_ADMIN_PROVISION_USER_CHECK
      Deprecated.
      See Also:
  • Constructor Details

    • AdminExternalLoginStateFilter

      public AdminExternalLoginStateFilter()
      Deprecated.
  • Method Details

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException
      Deprecated.
      Throws:
      IOException
      jakarta.servlet.ServletException
    • saveAdminUser

      protected void saveAdminUser(BroadleafExternalAuthenticationUserDetails broadleafUser, AdminUser user)
      Deprecated.