public class CsrfServerLogoutHandler extends java.lang.Object implements 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.Constructor and Description |
---|
CsrfServerLogoutHandler(ServerCsrfTokenRepository csrfTokenRepository)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
logout(WebFilterExchange exchange,
Authentication authentication)
Clears the
CsrfToken |
public CsrfServerLogoutHandler(ServerCsrfTokenRepository csrfTokenRepository)
csrfTokenRepository
- The ServerCsrfTokenRepository
to usepublic reactor.core.publisher.Mono<java.lang.Void> logout(WebFilterExchange exchange, Authentication authentication)
CsrfToken
logout
in interface ServerLogoutHandler
exchange
- the exchangeauthentication
- the Authentication