spring-security
spring-security copied to clipboard
Add NegatedServerWebExchangeMatcher
Summary
Actual Behavior
Expected Behavior
Negate the matching result of the underlying ServerWebExchangeMatcher. Together with AndServerWebExchangeMatcher, OrServerWebExchangeMatcher, NegatedServerWebExchangeMatcher can present any boolean operations of matchers.
The matching result does not carry the variables of underlying ServerWebExchangeMatcher.
Configuration
Version
Sample
new NegatedServerWebExchangeMatcher(new PathPatternParserServerWebExchangeMatcher("/allowed"))
PR: https://github.com/spring-projects/spring-security/pull/5182
Thanks for the issue and the PR! This is now resolved in master.