• Andy Wilkinson's avatar
    Make Spring Security's filter's order configurable and default to zero · 0cdb1d3f
    Andy Wilkinson authored
    Previously, Spring Security's filter had no configured order. Due to
    the use of AnnotationAwareOrderComparater this meant that its order
    defaulted to LOWEST_PRECEDENCE. This meant that a user had to declare
    a FilterRegistrationBean for the filter and explicitly set its order
    if they want another filter to run after Spring Security's.
    
    This commit updates the security auto-configuration to assign a
    default order of zero to Spring Security's filter, allowing filters
    to be easily configured to run before it or after it. This default
    value can overridden using the server.filter-order property. The
    default order is also exposed as a constant on SecurityProperties,
    allowing it to be referenced from other filter declarations.
    
    Closes gh-1640
    0cdb1d3f
Name
Last commit
Last update
..
.gitignore Loading commit data...
Guardfile Loading commit data...
appendix-application-properties.adoc Loading commit data...
appendix-auto-configuration-classes.adoc Loading commit data...
appendix-dependency-versions.adoc Loading commit data...
appendix-executable-jar-format.adoc Loading commit data...
appendix.adoc Loading commit data...
build-tool-plugins.adoc Loading commit data...
cloud-deployment.adoc Loading commit data...
documentation-overview.adoc Loading commit data...
getting-started.adoc Loading commit data...
howto.adoc Loading commit data...
index-docinfo.xml Loading commit data...
index.adoc Loading commit data...
production-ready-features.adoc Loading commit data...
spring-boot-cli.adoc Loading commit data...
spring-boot-features.adoc Loading commit data...
using-spring-boot.adoc Loading commit data...