Skip to content

Commit 1e0e9a2

Browse files
shazinSteve Riesenberg
authored and
Steve Riesenberg
committed
Allow authenticationIsRequired to be overridden
Issue gh-10347
1 parent 4d62621 commit 1e0e9a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
202202
chain.doFilter(request, response);
203203
}
204204

205-
private boolean authenticationIsRequired(String username) {
205+
protected boolean authenticationIsRequired(String username) {
206206
// Only reauthenticate if username doesn't match SecurityContextHolder and user
207207
// isn't authenticated (see SEC-53)
208208
Authentication existingAuth = this.securityContextHolderStrategy.getContext().getAuthentication();

0 commit comments

Comments
 (0)