June 2018
Intermediate to advanced
408 pages
11h 23m
English
Now, we will provide the created UserCache bean to AuthenticationProvider:
@Beanpublic AuthenticationProvider authenticationProviderBean() { DaoAuthenticationProvider authenticationProvider = new DaoAuthenticationProvider(); authenticationProvider.setPasswordEncoder(passwordEncoder); authenticationProvider.setUserCache(userCache); authenticationProvider. setUserDetailsService(userDetailsService()); return authenticationProvider;}
Read now
Unlock full access