diff --git a/samples/concurrency-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/concurrency-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index ec4bccda74..0f42077292 100644 --- a/samples/concurrency-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/concurrency-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -12,7 +12,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe @EnableGlobalMethodSecurity(prePostEnabled=true) public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .inMemoryAuthentication() diff --git a/samples/form-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/form-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index 27ae25e937..dbd1c82db7 100644 --- a/samples/form-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/form-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -26,7 +26,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { } @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .inMemoryAuthentication() diff --git a/samples/hellojs-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/hellojs-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index 6542457f7b..30e6d63bcb 100644 --- a/samples/hellojs-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/hellojs-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -10,7 +10,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe public class SecurityConfig { @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .inMemoryAuthentication() diff --git a/samples/hellomvc-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/hellomvc-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index d1af3b6a6f..06be0cfc73 100644 --- a/samples/hellomvc-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/hellomvc-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -9,7 +9,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe public class SecurityConfig { @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .inMemoryAuthentication() diff --git a/samples/inmemory-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/inmemory-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index 1910d0b476..b35a394996 100644 --- a/samples/inmemory-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/inmemory-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -10,7 +10,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe public class SecurityConfig { @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .inMemoryAuthentication() diff --git a/samples/ldap-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/ldap-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index d1a0484351..5305afa8bf 100644 --- a/samples/ldap-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/ldap-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -9,7 +9,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe @EnableWebSecurity public class SecurityConfig { @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .ldapAuthentication() diff --git a/samples/rememberme-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java b/samples/rememberme-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java index 7253142c8a..fa3528f15c 100644 --- a/samples/rememberme-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java +++ b/samples/rememberme-jc/src/main/java/org/springframework/security/samples/config/SecurityConfig.java @@ -11,7 +11,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired - public void registerGlobalAuthentication( + public void configureGlobal( AuthenticationManagerBuilder auth) throws Exception { auth .inMemoryAuthentication()