Use lambda DSL in logout header docs

This commit is contained in:
Eleftheria Stein 2022-02-03 13:03:41 +01:00
parent 51fc4a4ca3
commit 28b363551e
1 changed files with 3 additions and 2 deletions

View File

@ -914,8 +914,9 @@ WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http
// ...
.logout()
.addLogoutHandler(new HeaderWriterLogoutHandler(new ClearSiteDataHeaderWriter(CACHE, COOKIES)));
.logout((logout) -> logout
.addLogoutHandler(new HeaderWriterLogoutHandler(new ClearSiteDataHeaderWriter(CACHE, COOKIES)))
);
}
}
----