The InMemoryUserDetailsManager should encode generated password if the password encoder is provided.
Comment From: wilkinsona
Thanks for the proposal but the current behaviour is intentional. Please see https://github.com/spring-projects/spring-boot/issues/10963 for details.