mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 20:42:14 +00:00
SEC-2222: Use auth parameter name instead of registry
This commit is contained in:
parent
ac053dbda7
commit
cf0fdc2d66
@ -57,7 +57,7 @@ import org.springframework.security.config.annotation.web.WebSecurityConfigurer;
|
|||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
|
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
|
||||||
* registry
|
* auth
|
||||||
* // enable in memory based authentication with a user named "user" and "admin"
|
* // enable in memory based authentication with a user named "user" and "admin"
|
||||||
* .inMemoryAuthentication()
|
* .inMemoryAuthentication()
|
||||||
* .withUser("user").password("password").roles("USER").and()
|
* .withUser("user").password("password").roles("USER").and()
|
||||||
|
@ -113,7 +113,7 @@ public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer
|
|||||||
* <pre>
|
* <pre>
|
||||||
* @Override
|
* @Override
|
||||||
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
|
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
|
||||||
* registry
|
* auth
|
||||||
* // enable in memory based authentication with a user named "user" and "admin"
|
* // enable in memory based authentication with a user named "user" and "admin"
|
||||||
* .inMemoryAuthentication()
|
* .inMemoryAuthentication()
|
||||||
* .withUser("user").password("password").roles("USER").and()
|
* .withUser("user").password("password").roles("USER").and()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user