mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 09:12:14 +00:00
Logout at the end of logout method
Issue: gh-4719
This commit is contained in:
parent
c467dcdbe1
commit
4777a869bc
@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.security.web.server.authentication.logout;
|
||||
|
||||
import org.springframework.security.core.context.ReactiveSecurityContextHolder;
|
||||
import org.springframework.util.Assert;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
@ -68,7 +69,8 @@ public class LogoutWebFilter implements WebFilter {
|
||||
|
||||
private Mono<Void> logout(WebFilterExchange webFilterExchange, Authentication authentication) {
|
||||
return this.serverLogoutHandler.logout(webFilterExchange, authentication)
|
||||
.then(this.serverLogoutSuccessHandler.onLogoutSuccess(webFilterExchange, authentication));
|
||||
.then(this.serverLogoutSuccessHandler.onLogoutSuccess(webFilterExchange, authentication))
|
||||
.subscriberContext(ReactiveSecurityContextHolder.clearContext());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user