Allow authenticationIsRequired to be overridden
Issue gh-10347
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ public class BasicAuthenticationFilter extends OncePerRequestFilter {
|
||||
chain.doFilter(request, response);
|
||||
}
|
||||
|
||||
private boolean authenticationIsRequired(String username) {
|
||||
protected boolean authenticationIsRequired(String username) {
|
||||
// Only reauthenticate if username doesn't match SecurityContextHolder and user
|
||||
// isn't authenticated (see SEC-53)
|
||||
Authentication existingAuth = this.securityContextHolderStrategy.getContext().getAuthentication();
|
||||
|
||||
Reference in New Issue
Block a user