use of org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager in project spring-security by spring-projects.
the class ServerHttpSecurityConfigurationBuilder method httpWithDefaultAuthentication.
public static ServerHttpSecurity httpWithDefaultAuthentication() {
ReactiveUserDetailsService reactiveUserDetailsService = ReactiveAuthenticationTestConfiguration.userDetailsService();
ReactiveAuthenticationManager authenticationManager = new UserDetailsRepositoryReactiveAuthenticationManager(reactiveUserDetailsService);
return http().authenticationManager(authenticationManager);
}
use of org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager in project spring-security by spring-projects.
the class ServerHttpSecurityConfiguration method authenticationManager.
private ReactiveAuthenticationManager authenticationManager() {
if (this.authenticationManager != null) {
return this.authenticationManager;
}
if (this.reactiveUserDetailsService != null) {
UserDetailsRepositoryReactiveAuthenticationManager manager = new UserDetailsRepositoryReactiveAuthenticationManager(this.reactiveUserDetailsService);
if (this.passwordEncoder != null) {
manager.setPasswordEncoder(this.passwordEncoder);
}
manager.setUserDetailsPasswordService(this.userDetailsPasswordService);
return manager;
}
return null;
}
Aggregations