Lab 6 осталась фигня с комментариями (все еще)

This commit is contained in:
Павел Сорокин 2023-05-06 16:36:29 +04:00
parent c30e8182f9
commit b0184fcf44

View File

@ -54,16 +54,9 @@ public class SecurityConfiguration {
.loginPage(LOGIN_URL).permitAll()
.and()
.logout().permitAll();
return http.build();
return http.userDetailsService(userService).build();
}
@Bean
public AuthenticationManager authenticationManagerBean(HttpSecurity http) throws Exception {
AuthenticationManagerBuilder authenticationManagerBuilder = http
.getSharedObject(AuthenticationManagerBuilder.class);
authenticationManagerBuilder.userDetailsService(userService);
return authenticationManagerBuilder.build();
}
@Bean
public WebSecurityCustomizer webSecurityCustomizer() {