Temporarily disable anonymous WebFlux Logout

Work around LogoutWebFilter always intercepting requests

Issue gh-4540
This commit is contained in:
Rob Winch 2017-09-13 16:56:07 -05:00
parent e14af37775
commit 5baf71f4a0
1 changed files with 0 additions and 1 deletions

View File

@ -48,7 +48,6 @@ public class LogoutWebFiter implements WebFilter {
.filter( result -> result.isMatch())
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
.flatMap( result -> exchange.getPrincipal().cast(Authentication.class))
.defaultIfEmpty(this.anonymousAuthenticationToken)
.flatMap( authentication -> this.logoutHandler.logout(new WebFilterExchange(exchange, chain), authentication));
}
}