I\'m trying to create OAuth2 Server Provider using this tutorial Spring OAuth2 . The main difference between example and my project - I do not use Spring Boot. I try to split th
Create another WebSecurityConfigurerAdapter class that will be the "main" configuration and add the following code in order to expose an AuthenticationManager bean:
@Bean
public AuthenticationManager customAuthenticationManager() throws Exception {
return authenticationManager();
}