SEC-2222: Use auth parameter name instead of registry

This commit is contained in:
Rob Winch 2013-07-20 07:49:07 -05:00
parent ac053dbda7
commit cf0fdc2d66
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ import org.springframework.security.config.annotation.web.WebSecurityConfigurer;
*
* @Override
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
* registry
* auth
* // enable in memory based authentication with a user named "user" and "admin"
* .inMemoryAuthentication()
* .withUser("user").password("password").roles("USER").and()

View File

@ -113,7 +113,7 @@ public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer
* <pre>
* &#064;Override
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
* registry
* auth
* // enable in memory based authentication with a user named "user" and "admin"
* .inMemoryAuthentication()
* .withUser("user").password("password").roles("USER").and()