mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
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())
|
.filter( result -> result.isMatch())
|
||||||
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
|
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
|
||||||
.flatMap( result -> exchange.getPrincipal().cast(Authentication.class))
|
.flatMap( result -> exchange.getPrincipal().cast(Authentication.class))
|
||||||
.defaultIfEmpty(this.anonymousAuthenticationToken)
|
|
||||||
.flatMap( authentication -> this.logoutHandler.logout(new WebFilterExchange(exchange, chain), authentication));
|
.flatMap( authentication -> this.logoutHandler.logout(new WebFilterExchange(exchange, chain), authentication));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user