Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated class NoOpPasswordEncoder in Spring boot security #6

Open
sarannrich opened this issue Nov 14, 2018 · 0 comments
Open

deprecated class NoOpPasswordEncoder in Spring boot security #6

sarannrich opened this issue Nov 14, 2018 · 0 comments

Comments

@sarannrich
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant