This commit is contained in:
Rob Winch 2017-09-25 20:37:43 -05:00
parent ad91adf9dc
commit 737c48de06
2 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,9 @@ public class HttpSecurity {
private AuthorizeExchangeBuilder authorizeExchangeBuilder;
private HeaderBuilder headers;
private HttpBasicBuilder httpBasic;
private FormLoginBuilder formLogin;
private ReactiveAuthenticationManager authenticationManager;

View File

@ -41,7 +41,8 @@ public class LoginPageGeneratingWebFilter implements WebFilter {
private ServerWebExchangeMatcher matcher = ServerWebExchangeMatchers
.pathMatchers(HttpMethod.GET, "/login");
@Override public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
@Override
public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
return this.matcher.matches(exchange)
.filter(ServerWebExchangeMatcher.MatchResult::isMatch)
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))