|
@@ -2765,7 +2765,9 @@ public class ServerHttpSecurity {
|
|
protected void configure(ServerHttpSecurity http) {
|
|
protected void configure(ServerHttpSecurity http) {
|
|
if (this.csrfTokenRepository != null) {
|
|
if (this.csrfTokenRepository != null) {
|
|
this.filter.setCsrfTokenRepository(this.csrfTokenRepository);
|
|
this.filter.setCsrfTokenRepository(this.csrfTokenRepository);
|
|
- http.logout().addLogoutHandler(new CsrfServerLogoutHandler(this.csrfTokenRepository));
|
|
|
|
|
|
+ if (ServerHttpSecurity.this.logout != null) {
|
|
|
|
+ ServerHttpSecurity.this.logout.addLogoutHandler(new CsrfServerLogoutHandler(this.csrfTokenRepository));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
http.addFilterAt(this.filter, SecurityWebFiltersOrder.CSRF);
|
|
http.addFilterAt(this.filter, SecurityWebFiltersOrder.CSRF);
|
|
}
|
|
}
|