The old AuthenticationManagerBuilders are no longer supported
.roles("USER").and().withUser("admin1").password("secret1")
.roles("USER", "ADMIN");```
They now need to be written as below.
```auth.inMemoryAuthentication()
.withUser("user1").password("{noop}secret1").roles("USER")
.and().withUser("admin1").password("{noop}secret1").roles("USER", "ADMIN");```
See ![this](https://stackoverflow.com/questions/50429483/spring-security-authentication-how-to-get-rid-of) solution on StackOverflow.
The old AuthenticationManagerBuilders are no longer supported