spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Add NegatedServerWebExchangeMatcher

Open anonymousXrandom opened this issue 8 years ago • 2 comments

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"))

anonymousXrandom avatar Mar 28 '18 18:03 anonymousXrandom

PR: https://github.com/spring-projects/spring-security/pull/5182

anonymousXrandom avatar Mar 28 '18 19:03 anonymousXrandom

Thanks for the issue and the PR! This is now resolved in master.

rwinch avatar Mar 30 '18 02:03 rwinch