Describe the bug When using saml2Login and @EnableAspectJAutoProxy the project refuses to start and gives this error Caused by: java.lang.IllegalArgumentException: The Filter class jdk.proxy5.$Proxy350 does not have a registered order and cannot be added without a specified order. Consider using addFilterBefore or addFilterAfter instead. at org.springframework.security.config.annotation.web.builders.HttpSecurity.addFilter (HttpSecurity.java:2939) at org.springframework.security.config.annotation.web.builders.HttpSecurity.addFilter (HttpSecurity.java:136) at org.springframework.security.config.annotation.web.configurers.saml2.Saml2LoginConfigurer.configure (Saml2LoginConfigurer.java:257) at org.springframework.security.config.annotation.web.configurers.saml2.Saml2LoginConfigurer.configure (Saml2LoginConfigurer.java:113)

To Reproduce If you enable AspectJ with @EnableAspectJAutoProxy or with and simultaneously you have saml2Login configured the project refuses to start and gives the error from above.

Comment From: jzheaux

Using the SAML 2.0 Sample, and adding @EnableAspectJAutoProxy, I'm not able to reproduce the behavior you describe.

Are you able to put together a sample that reproduces the issue?

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.