Use the new approach to configure AuthenticationManager