Skip to content

Commit 7bf2d3d

Browse files
committed
Update DeferHttpSession Tests
Closes gh-11764
1 parent 8cb97a0 commit 7bf2d3d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

config/src/test/java/org/springframework/security/config/annotation/web/configuration/DeferHttpSessionJavaConfigTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ DefaultSecurityFilterChain springSecurity(HttpSecurity http) throws Exception {
8989
.requireExplicitAuthenticationStrategy(true)
9090
)
9191
.csrf((csrf) -> csrf
92-
.csrfRequestAttributeName("_csrf")
9392
.csrfTokenRepository(csrfRepository)
9493
);
9594
// @formatter:on

config/src/test/resources/org/springframework/security/config/http/DeferHttpSessionTests-Explicit.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
<http auto-config="true"
3030
use-authorization-manager="true">
3131
<intercept-url pattern="/**" access="permitAll"/>
32-
<csrf request-attribute-name="_csrf"
33-
token-repository-ref="csrfRepository"/>
32+
<csrf token-repository-ref="csrfRepository"/>
3433
<request-cache ref="requestCache"/>
3534
<session-management authentication-strategy-explicit-invocation="true"/>
3635
</http>

0 commit comments

Comments
 (0)