Use lambda DSL in logout header docs

This commit is contained in:
Eleftheria Stein 2022-02-03 13:03:41 +01:00
parent c1dfe407bc
commit 7c9de7d0ff

View File

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