public class HttpStatusReturningServerLogoutSuccessHandler extends java.lang.Object implements ServerLogoutSuccessHandler
ServerLogoutSuccessHandler. By default returns an HTTP status code of 200.
This is useful in REST-type scenarios where a redirect upon a successful logout is not desired.| Constructor and Description |
|---|
HttpStatusReturningServerLogoutSuccessHandler()
Initialize the
HttpStatusReturningServerLogoutSuccessHandler with the default HttpStatus.OK. |
HttpStatusReturningServerLogoutSuccessHandler(org.springframework.http.HttpStatus httpStatusToReturn)
Initialize the
HttpStatusReturningServerLogoutSuccessHandler with a user-defined HttpStatus. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
onLogoutSuccess(WebFilterExchange exchange,
org.springframework.security.core.Authentication authentication)
|
public HttpStatusReturningServerLogoutSuccessHandler(org.springframework.http.HttpStatus httpStatusToReturn)
HttpStatusReturningServerLogoutSuccessHandler with a user-defined HttpStatus.httpStatusToReturn - Must not be null.public HttpStatusReturningServerLogoutSuccessHandler()
HttpStatusReturningServerLogoutSuccessHandler with the default HttpStatus.OK.public reactor.core.publisher.Mono<java.lang.Void> onLogoutSuccess(WebFilterExchange exchange, org.springframework.security.core.Authentication authentication)
ServerLogoutSuccessHandler.onLogoutSuccess(WebFilterExchange, Authentication). Sets the status
on the WebFilterExchange.onLogoutSuccess in interface ServerLogoutSuccessHandlerexchange - The exchangeauthentication - The Authentication