Browse Source

Added logging of FilterChainProxy when security namespace postprocessor has finished configuring it.

Luke Taylor 17 years ago
parent
commit
c3cd5d98ba

+ 3 - 1
core/src/main/java/org/springframework/security/config/HttpSecurityConfigPostProcessor.java

@@ -162,6 +162,8 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
                     beanFactory.getBean(BeanIds.HTTP_SESSION_CONTEXT_INTEGRATION_FILTER);
             scif.setForceEagerSessionCreation(true);
         }
+
+        logger.info("Configured filter chain(s): " + filterChainProxy);
     }
 
     private List orderFilters(ConfigurableListableBeanFactory beanFactory) {
@@ -183,7 +185,7 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
 
             if (!(filter instanceof Ordered)) {
                 // TODO: Possibly log this as a warning and skip this filter.
-                throw new SecurityConfigurationException("Filter " + id + " must implement the Ordered interface");
+                logger.info("Filter " + id + " doesn't implement the Ordered interface, skipping it.");
             }
 
             orderedFilters.add(filter);