Class CsrfServerLogoutHandler
java.lang.Object
org.springframework.security.web.server.csrf.CsrfServerLogoutHandler
- All Implemented Interfaces:
- ServerLogoutHandler
CsrfServerLogoutHandler is in charge of removing the CsrfToken upon
 logout. A new CsrfToken will then be generated by the framework upon the next
 request.- Since:
- 5.1
- 
Constructor SummaryConstructorsConstructorDescriptionCsrfServerLogoutHandler(ServerCsrfTokenRepository csrfTokenRepository) Creates a new instance
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>logout(WebFilterExchange exchange, Authentication authentication) Clears theCsrfToken
- 
Constructor Details- 
CsrfServerLogoutHandlerCreates a new instance- Parameters:
- csrfTokenRepository- The- ServerCsrfTokenRepositoryto use
 
 
- 
- 
Method Details- 
logoutpublic reactor.core.publisher.Mono<Void> logout(WebFilterExchange exchange, Authentication authentication) Clears theCsrfToken- Specified by:
- logoutin interface- ServerLogoutHandler
- Parameters:
- exchange- the exchange
- authentication- the- Authentication
- Returns:
- A completion notification (success or error)
 
 
-