org.broadleafcommerce.openadmin.web.filter
Class AdminExternalLoginStateFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.broadleafcommerce.openadmin.web.filter.AdminExternalLoginStateFilter
- All Implemented Interfaces:
- javax.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.web.context.ServletContextAware
public class AdminExternalLoginStateFilter
- extends org.springframework.web.filter.GenericFilterBean
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.
User: Kelly Tisdell
Date: 6/19/12
| Fields inherited from class org.springframework.web.filter.GenericFilterBean |
logger |
| Methods inherited from class org.springframework.web.filter.GenericFilterBean |
addRequiredProperty, afterPropertiesSet, destroy, 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 |
BLC_ADMIN_PROVISION_USER_CHECK
protected static final String BLC_ADMIN_PROVISION_USER_CHECK
- See Also:
- Constant Field Values
AdminExternalLoginStateFilter
public AdminExternalLoginStateFilter()
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
saveAdminUser
protected void saveAdminUser(BroadleafExternalAuthenticationUserDetails broadleafUser,
AdminUser user)
Copyright © 2013. All Rights Reserved.