Skip to content

Commit 0e88033

Browse files
committed
Fix misleading variable name in authentication filter
Rename DEFAULT_ANT_PATH_REQUEST_MATCHER to DEFAULT_PATH_REQUEST_MATCHER to reflect PathPatternRequestMatcher usage instead of legacy Ant pattern terminology. Signed-off-by: Jaehwan Lee <[email protected]>
1 parent 006f638 commit 0e88033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/main/java/org/springframework/security/web/authentication/UsernamePasswordAuthenticationFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class UsernamePasswordAuthenticationFilter extends AbstractAuthentication
5353

5454
public static final String SPRING_SECURITY_FORM_PASSWORD_KEY = "password";
5555

56-
private static final RequestMatcher DEFAULT_ANT_PATH_REQUEST_MATCHER = PathPatternRequestMatcher.withDefaults()
56+
private static final RequestMatcher DEFAULT_PATH_REQUEST_MATCHER = PathPatternRequestMatcher.withDefaults()
5757
.matcher(HttpMethod.POST, "/login");
5858

5959
private String usernameParameter = SPRING_SECURITY_FORM_USERNAME_KEY;
@@ -63,11 +63,11 @@ public class UsernamePasswordAuthenticationFilter extends AbstractAuthentication
6363
private boolean postOnly = true;
6464

6565
public UsernamePasswordAuthenticationFilter() {
66-
super(DEFAULT_ANT_PATH_REQUEST_MATCHER);
66+
super(DEFAULT_PATH_REQUEST_MATCHER);
6767
}
6868

6969
public UsernamePasswordAuthenticationFilter(AuthenticationManager authenticationManager) {
70-
super(DEFAULT_ANT_PATH_REQUEST_MATCHER, authenticationManager);
70+
super(DEFAULT_PATH_REQUEST_MATCHER, authenticationManager);
7171
}
7272

7373
@Override

0 commit comments

Comments
 (0)