mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-03 11:59:08 +00:00
ServerHttpSecurity extracts WebFilter from OrderedWebFilter
Fixes gh-4736
This commit is contained in:
parent
832f5c39c1
commit
4295461830
@ -249,7 +249,14 @@ public class ServerHttpSecurity {
|
||||
this.authorizeExchangeBuilder.configure(this);
|
||||
}
|
||||
AnnotationAwareOrderComparator.sort(this.webFilters);
|
||||
return new MatcherSecurityWebFilterChain(getSecurityMatcher(), this.webFilters);
|
||||
List<WebFilter> sortedWebFilters = new ArrayList<>();
|
||||
this.webFilters.forEach( f -> {
|
||||
if(f instanceof OrderedWebFilter) {
|
||||
f = ((OrderedWebFilter)f).webFilter;
|
||||
}
|
||||
sortedWebFilters.add(f);
|
||||
});
|
||||
return new MatcherSecurityWebFilterChain(getSecurityMatcher(), sortedWebFilters);
|
||||
}
|
||||
|
||||
private String buildToString() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user