SEC-1783: Can't tell the difference between no credentials and invalid credentials #2019
Labels
in: core
An issue in spring-security-core
status: declined
A suggestion or change that we don't feel we should currently apply
type: jira
An issue that was migrated from JIRA
Paul Benedict (Migrated from SEC-1783) said:
I need to record the number of password failures for existing users. DaoAuthenticationProvider#additionalAuthenticationChecks() is where I could do this, except BadCredentialsException is thrown for both (log messages) "no credentials provided" and "password does not match stored value". There's no way to distinguish the two at runtime. There's some refactoring here that could be done. Here are my suggestions:
Of the two choices, I prefer #1
The text was updated successfully, but these errors were encountered: