Class ServerHttpSecurity.LogoutSpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.LogoutSpec
- Enclosing class:
- ServerHttpSecurity
Configures log out
- Since:
- 5.0
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionand()Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.protected voidconfigure(ServerHttpSecurity http) disable()Disables log outlogoutHandler(ServerLogoutHandler logoutHandler) Configures the logout handler.Configures what URL a POST to will trigger a log out.requiresLogout(ServerWebExchangeMatcher requiresLogout) Configures when the log out will be triggered.
- 
Method Details- 
logoutHandlerConfigures the logout handler. Default isSecurityContextServerLogoutHandler- Parameters:
- logoutHandler-
- Returns:
- the ServerHttpSecurity.LogoutSpecto configure
 
- 
logoutUrlConfigures what URL a POST to will trigger a log out.- Parameters:
- logoutUrl- the url to trigger a log out (i.e. "/signout" would mean a POST to "/signout" would trigger log out)
- Returns:
- the ServerHttpSecurity.LogoutSpecto configure
 
- 
requiresLogoutConfigures when the log out will be triggered.- Parameters:
- requiresLogout- the matcher to determine when log out is triggered
- Returns:
- the ServerHttpSecurity.LogoutSpecto configure
 
- 
logoutSuccessHandler
- 
andDeprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseServerHttpSecurity.logout(Customizer)orlogout(Customizer.withDefaults())to stick with defaults. See the documentation for more details.Allows method chaining to continue configuring theServerHttpSecurity- Returns:
- the ServerHttpSecurityto continue configuring
 
- 
disableDisables log out- Returns:
- the ServerHttpSecurityto continue configuring
 
- 
configure
 
-