mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 07:12:32 +00:00
Consistent configureGlobal in samples
This commit is contained in:
parent
8b1f5f7cd7
commit
a36c4bcb04
@ -12,7 +12,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
|
|||||||
@EnableGlobalMethodSecurity(prePostEnabled=true)
|
@EnableGlobalMethodSecurity(prePostEnabled=true)
|
||||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.inMemoryAuthentication()
|
.inMemoryAuthentication()
|
||||||
|
@ -26,7 +26,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.inMemoryAuthentication()
|
.inMemoryAuthentication()
|
||||||
|
@ -10,7 +10,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
|
|||||||
public class SecurityConfig {
|
public class SecurityConfig {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.inMemoryAuthentication()
|
.inMemoryAuthentication()
|
||||||
|
@ -9,7 +9,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
|
|||||||
public class SecurityConfig {
|
public class SecurityConfig {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.inMemoryAuthentication()
|
.inMemoryAuthentication()
|
||||||
|
@ -10,7 +10,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
|
|||||||
public class SecurityConfig {
|
public class SecurityConfig {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.inMemoryAuthentication()
|
.inMemoryAuthentication()
|
||||||
|
@ -9,7 +9,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
|
|||||||
@EnableWebSecurity
|
@EnableWebSecurity
|
||||||
public class SecurityConfig {
|
public class SecurityConfig {
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.ldapAuthentication()
|
.ldapAuthentication()
|
||||||
|
@ -11,7 +11,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
|
|||||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void registerGlobalAuthentication(
|
public void configureGlobal(
|
||||||
AuthenticationManagerBuilder auth) throws Exception {
|
AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth
|
auth
|
||||||
.inMemoryAuthentication()
|
.inMemoryAuthentication()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user