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 <jhrick0129@gmail.com>
This commit is contained in:
+3
-3
@@ -53,7 +53,7 @@ public class UsernamePasswordAuthenticationFilter extends AbstractAuthentication
|
||||
|
||||
public static final String SPRING_SECURITY_FORM_PASSWORD_KEY = "password";
|
||||
|
||||
private static final RequestMatcher DEFAULT_ANT_PATH_REQUEST_MATCHER = PathPatternRequestMatcher.withDefaults()
|
||||
private static final RequestMatcher DEFAULT_PATH_REQUEST_MATCHER = PathPatternRequestMatcher.withDefaults()
|
||||
.matcher(HttpMethod.POST, "/login");
|
||||
|
||||
private String usernameParameter = SPRING_SECURITY_FORM_USERNAME_KEY;
|
||||
@@ -63,11 +63,11 @@ public class UsernamePasswordAuthenticationFilter extends AbstractAuthentication
|
||||
private boolean postOnly = true;
|
||||
|
||||
public UsernamePasswordAuthenticationFilter() {
|
||||
super(DEFAULT_ANT_PATH_REQUEST_MATCHER);
|
||||
super(DEFAULT_PATH_REQUEST_MATCHER);
|
||||
}
|
||||
|
||||
public UsernamePasswordAuthenticationFilter(AuthenticationManager authenticationManager) {
|
||||
super(DEFAULT_ANT_PATH_REQUEST_MATCHER, authenticationManager);
|
||||
super(DEFAULT_PATH_REQUEST_MATCHER, authenticationManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user