Temporarily disable anonymous WebFlux Logout
Work around LogoutWebFilter always intercepting requests Issue gh-4540
This commit is contained in:
parent
e14af37775
commit
5baf71f4a0
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue