Reformat CustomWebSecurityConfigurerAdapter
This commit is contained in:
parent
6cca052251
commit
b451fcfc02
@ -13,14 +13,13 @@ import org.springframework.security.web.authentication.www.BasicAuthenticationFi
|
|||||||
@Configuration
|
@Configuration
|
||||||
@EnableWebSecurity
|
@EnableWebSecurity
|
||||||
public class CustomWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
|
public class CustomWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MyBasicAuthenticationEntryPoint authenticationEntryPoint;
|
private MyBasicAuthenticationEntryPoint authenticationEntryPoint;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void configureGlobal(AuthenticationManagerBuilder auth)
|
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
|
||||||
throws Exception {
|
auth.inMemoryAuthentication()
|
||||||
auth
|
|
||||||
.inMemoryAuthentication()
|
|
||||||
.withUser("user1").password("user1Pass")
|
.withUser("user1").password("user1Pass")
|
||||||
.authorities("ROLE_USER");
|
.authorities("ROLE_USER");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user