Skip to content

Commit 120fb26

Browse files
committed
override OncePerRequestFilter#getAlreadyFilteredAttributeName in AuthenticationFilter (#17173)
Signed-off-by: Andrey Litvitski <[email protected]>
1 parent 6d3b54d commit 120fb26

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -64,6 +64,7 @@
6464
* </ul>
6565
*
6666
* @author Sergey Bespalov
67+
* @author Andrey Litvitski
6768
* @since 5.2.0
6869
*/
6970
public class AuthenticationFilter extends OncePerRequestFilter {
@@ -222,4 +223,9 @@ private Authentication attemptAuthentication(HttpServletRequest request, HttpSer
222223
return authenticationResult;
223224
}
224225

226+
@Override
227+
protected String getAlreadyFilteredAttributeName() {
228+
return getClass().getName() + ".FILTERED";
229+
}
230+
225231
}

0 commit comments

Comments
 (0)