From 7bf2d3dc4e3556a82104329816087effda85b494 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 31 Aug 2022 14:40:06 -0500 Subject: [PATCH] Update DeferHttpSession Tests Closes gh-11764 --- .../web/configuration/DeferHttpSessionJavaConfigTests.java | 1 - .../security/config/http/DeferHttpSessionTests-Explicit.xml | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/configuration/DeferHttpSessionJavaConfigTests.java b/config/src/test/java/org/springframework/security/config/annotation/web/configuration/DeferHttpSessionJavaConfigTests.java index 89eabe1237..e0cdbab6c2 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/configuration/DeferHttpSessionJavaConfigTests.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/configuration/DeferHttpSessionJavaConfigTests.java @@ -89,7 +89,6 @@ public class DeferHttpSessionJavaConfigTests { .requireExplicitAuthenticationStrategy(true) ) .csrf((csrf) -> csrf - .csrfRequestAttributeName("_csrf") .csrfTokenRepository(csrfRepository) ); // @formatter:on diff --git a/config/src/test/resources/org/springframework/security/config/http/DeferHttpSessionTests-Explicit.xml b/config/src/test/resources/org/springframework/security/config/http/DeferHttpSessionTests-Explicit.xml index 2c0adca4d0..2e7552dfa9 100644 --- a/config/src/test/resources/org/springframework/security/config/http/DeferHttpSessionTests-Explicit.xml +++ b/config/src/test/resources/org/springframework/security/config/http/DeferHttpSessionTests-Explicit.xml @@ -29,8 +29,7 @@ - +