1
0
mirror of synced 2026-08-31 22:46:02 +00:00

Add ServerWebExchangeMatcherEntry

This commit is contained in:
Rob Winch
2017-05-31 16:09:54 -05:00
parent 915de03f42
commit e5eda24054
4 changed files with 57 additions and 13 deletions
@@ -23,6 +23,7 @@ import org.springframework.security.authorization.AuthorityAuthorizationManager;
import org.springframework.security.web.server.authorization.AuthorizationWebFilter;
import org.springframework.security.web.server.authorization.DelegatingReactiveAuthorizationManager;
import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher;
import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcherEntry;
import org.springframework.web.server.WebFilter;
import reactor.core.publisher.Mono;
@@ -84,7 +85,7 @@ public class AuthorizeExchangeBuilder extends AbstractServerWebExchangeMatcherRe
}
public AuthorizeExchangeBuilder access(ReactiveAuthorizationManager<AuthorizationContext> manager) {
managerBldr.add(matcher, manager);
managerBldr.add(new ServerWebExchangeMatcherEntry<>(matcher, manager));
matcher = null;
return AuthorizeExchangeBuilder.this;
}