From cf0fdc2d66a819b3ba86bd0d1a5a704f7bb47d15 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Sat, 20 Jul 2013 07:49:07 -0500 Subject: [PATCH] SEC-2222: Use auth parameter name instead of registry --- .../config/annotation/web/configuration/EnableWebSecurity.java | 2 +- .../web/configuration/WebSecurityConfigurerAdapter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java index c3d0bbf531..c3e893e804 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java @@ -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() diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java index 3180b9c4f1..989adf42f6 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java @@ -113,7 +113,7 @@ public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer *
      * @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()