}); sortedWebFilters.add(0, new ServerWebExchangeReactorContextWebFilter()); return new MatcherSecurityWebFilterChain(getSecurityMatcher(), sortedWebFilters);
}); sortedWebFilters.add(0, new ServerWebExchangeReactorContextWebFilter()); return new MatcherSecurityWebFilterChain(getSecurityMatcher(), sortedWebFilters);
private WebFilterChainProxy postProcess(WebFilterChainProxy existing) { ServerWebExchangeMatcher cloudFoundryRequestMatcher = ServerWebExchangeMatchers .pathMatchers("/cloudfoundryapplication/**"); WebFilter noOpFilter = (exchange, chain) -> chain.filter(exchange); MatcherSecurityWebFilterChain ignoredRequestFilterChain = new MatcherSecurityWebFilterChain( cloudFoundryRequestMatcher, Collections.singletonList(noOpFilter)); MatcherSecurityWebFilterChain allRequestsFilterChain = new MatcherSecurityWebFilterChain( ServerWebExchangeMatchers.anyExchange(), Collections.singletonList(existing)); return new WebFilterChainProxy(ignoredRequestFilterChain, allRequestsFilterChain); }
public static WebFilterChainFilter fromWebFiltersList(List<WebFilter> filters) { return new WebFilterChainFilter(Flux.just(new MatcherSecurityWebFilterChain(ServerWebExchangeMatchers.anyExchange(), filters))); }
}); sortedWebFilters.add(0, new ServerWebExchangeReactorContextWebFilter()); return new MatcherSecurityWebFilterChain(getSecurityMatcher(), sortedWebFilters);