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
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 text was updated successfully, but these errors were encountered:
The old AuthenticationManagerBuilders are no longer supported
The text was updated successfully, but these errors were encountered: