Java Code Examples for org.springframework.security.authentication.dao.DaoAuthenticationProvider#setHideUserNotFoundExceptions()
The following examples show how to use
org.springframework.security.authentication.dao.DaoAuthenticationProvider#setHideUserNotFoundExceptions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SecurityConfig.java From WeBASE-Node-Manager with Apache License 2.0 | 5 votes |
@Bean public DaoAuthenticationProvider userAuthenticationProvider(){ DaoAuthenticationProvider daoAuthenticationProvider = new DaoAuthenticationProvider(); daoAuthenticationProvider.setUserDetailsService(userDetailService); daoAuthenticationProvider.setHideUserNotFoundExceptions(false); daoAuthenticationProvider.setPasswordEncoder(passwordEncoder()); return daoAuthenticationProvider; }
Example 2
Source File: WebSecurityConfig.java From SpringSecurity-JWT-Vue-Deom with MIT License | 5 votes |
@Bean public DaoAuthenticationProvider daoAuthenticationProvider() { DaoAuthenticationProvider provider = new DaoAuthenticationProvider(); provider.setHideUserNotFoundExceptions(false); provider.setPasswordEncoder(passwordEncoder()); provider.setUserDetailsService(new CustomUserDetailsService()); return provider; }
Example 3
Source File: WebSecurityConfiguration.java From Parrit with MIT License | 5 votes |
@Bean public AuthenticationProvider authenticationProvider(UserDetailsService userDetailsService, PasswordEncoder passwordEncoder) { DaoAuthenticationProvider daoAuthenticationProvider = new DaoAuthenticationProvider(); daoAuthenticationProvider.setUserDetailsService(userDetailsService); daoAuthenticationProvider.setPasswordEncoder(passwordEncoder); daoAuthenticationProvider.setHideUserNotFoundExceptions(false); return daoAuthenticationProvider; }