One Time Token user lookup should fail with BadCredentialsException #16494
Labels
in: core
An issue in spring-security-core
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Milestone
When credentials fail authentication, Spring Security conventionally throws
BadCredentialsException
.OneTimeTokenAuthenticationProvider
should catchUsernameNotFoundException
, wrap it, and rethrow asBadCredentialsException
.The text was updated successfully, but these errors were encountered: