I'm trying to implement Spring Security authentication on Spring WebFlux app. I have implemented Spring Security authentication on Spring Web before.
When I read articles on how to implement it, I saw MapReactiveUserDetailsService bean but there is no explanation about this bean usage. I read the article from here and here.
the bean looks like this:
@Bean
public MapReactiveUserDetailsService userDetailsService() {
UserDetails user = User
.withUsername("user")
.password(passwordEncoder().encode("password"))
.roles("USER")
.build();
return new MapReactiveUserDetailsService(user);
}
is there anyone know what it does?