Class RedirectServerLogoutSuccessHandler
java.lang.Object
org.springframework.security.web.server.authentication.logout.RedirectServerLogoutSuccessHandler
- All Implemented Interfaces:
ServerLogoutSuccessHandler
public class RedirectServerLogoutSuccessHandler
extends Object
implements ServerLogoutSuccessHandler
Performs a redirect on log out success.
- Since:
- 5.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
onLogoutSuccess
(WebFilterExchange exchange, Authentication authentication) Invoked after log out was successfulvoid
setLogoutSuccessUrl
(URI logoutSuccessUrl) The URL to redirect to after successfully logging out.
-
Field Details
-
DEFAULT_LOGOUT_SUCCESS_URL
- See Also:
-
-
Constructor Details
-
RedirectServerLogoutSuccessHandler
public RedirectServerLogoutSuccessHandler()
-
-
Method Details
-
onLogoutSuccess
public reactor.core.publisher.Mono<Void> onLogoutSuccess(WebFilterExchange exchange, Authentication authentication) Description copied from interface:ServerLogoutSuccessHandler
Invoked after log out was successful- Specified by:
onLogoutSuccess
in interfaceServerLogoutSuccessHandler
- Parameters:
exchange
- the exchangeauthentication
- theAuthentication
- Returns:
- a completion notification (success or error)
-
setLogoutSuccessUrl
The URL to redirect to after successfully logging out.- Parameters:
logoutSuccessUrl
- the url to redirect to. Default is "/login?logout".
-