You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit removes existence validation of a method only available in Servlet 3.1.
Spring Framework baseline is Servlet 3.1 so is not longer required.
Fixes: gh-6259
Copy file name to clipboardExpand all lines: config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
+3-11
Original file line number
Diff line number
Diff line change
@@ -212,8 +212,7 @@ public SessionManagementConfigurer<H> sessionCreationPolicy(
212
212
213
213
/**
214
214
* Allows explicitly specifying the {@link SessionAuthenticationStrategy}.
215
-
* The default is to use {@link SessionFixationProtectionStrategy} for Servlet 3.1 or
216
-
* {@link ChangeSessionIdAuthenticationStrategy} for Servlet 3.1+.
215
+
* The default is to use {@link ChangeSessionIdAuthenticationStrategy}.
217
216
* If restricting the maximum number of sessions is configured, then
218
217
* {@link CompositeSessionAuthenticationStrategy} delegating to
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurerServlet31Tests.java
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/authentication/session/ChangeSessionIdAuthenticationStrategy.java
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/authentication/session/SessionFixationProtectionStrategy.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
importjavax.servlet.http.HttpSession;
25
25
26
26
/**
27
-
* The default implementation of {@link SessionAuthenticationStrategy} when using <
27
+
* The implementation of {@link SessionAuthenticationStrategy} when using <
28
28
* Servlet 3.1.
29
29
* <p>
30
30
* Creates a new session for the newly authenticated user if they already have a session
Copy file name to clipboardExpand all lines: web/src/test/java/org/springframework/security/web/authentication/session/ChangeSessionIdAuthenticationStrategyTests.java
0 commit comments