You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InMemoryUserDetailsManager adds the username as the exception message for UsernameNotFoundException.
Outside of the context of this exception (for example when wrapped by another exception), the meaning of this message is harder to decipher.
Conventionally, Spring Security uses UsernameNotFoundException with a message like:
newUsernameNotFoundException("user '" + username + "' not found");
Making this change to InMemoryUserDetailsManager will make the exception message more informative and align it's behavior with the rest of Spring Security.
The text was updated successfully, but these errors were encountered:
InMemoryUserDetailsManager
adds the username as the exception message forUsernameNotFoundException
.Outside of the context of this exception (for example when wrapped by another exception), the meaning of this message is harder to decipher.
Conventionally, Spring Security uses
UsernameNotFoundException
with a message like:Making this change to
InMemoryUserDetailsManager
will make the exception message more informative and align it's behavior with the rest of Spring Security.The text was updated successfully, but these errors were encountered: