June 2018
Intermediate to advanced
408 pages
11h 23m
English
Now, let's provide AuthenticationProvider to AuthenticationManagerBuilder in the Spring Security configuration class:
@Autowired @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth .eraseCredentials(false) //Providing AuthenticationProvider to AuthenticationManagerBuilder. .authenticationProvider(authenticationProviderBean()) .jdbcAuthentication() .dataSource(dataSource); }
Now, let's call that API and check the performance of authentication. If we call the API four times, the following log will be generated:
22:46:55.314 RDS DEBUG EhCacheBasedUserCache - Cache hit: false; username: cust00122:46:55.447 RDS DEBUG JdbcTemplate - Executing ...
Read now
Unlock full access