Browse Source

Update DeferHttpSession Tests

Closes gh-11764
pull/11777/head
Rob Winch 3 years ago
parent
commit
7bf2d3dc4e
  1. 1
      config/src/test/java/org/springframework/security/config/annotation/web/configuration/DeferHttpSessionJavaConfigTests.java
  2. 3
      config/src/test/resources/org/springframework/security/config/http/DeferHttpSessionTests-Explicit.xml

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

@ -89,7 +89,6 @@ public class DeferHttpSessionJavaConfigTests { @@ -89,7 +89,6 @@ public class DeferHttpSessionJavaConfigTests {
.requireExplicitAuthenticationStrategy(true)
)
.csrf((csrf) -> csrf
.csrfRequestAttributeName("_csrf")
.csrfTokenRepository(csrfRepository)
);
// @formatter:on

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

@ -29,8 +29,7 @@ @@ -29,8 +29,7 @@
<http auto-config="true"
use-authorization-manager="true">
<intercept-url pattern="/**" access="permitAll"/>
<csrf request-attribute-name="_csrf"
token-repository-ref="csrfRepository"/>
<csrf token-repository-ref="csrfRepository"/>
<request-cache ref="requestCache"/>
<session-management authentication-strategy-explicit-invocation="true"/>
</http>

Loading…
Cancel
Save