@Bean public MapReactiveUserDetailsService userDetailsRepository() { UserBuilder users = User.withDefaultPasswordEncoder(); UserDetails user = users.username("user").password("password").roles("USER").build(); UserDetails admin = users.username("admin").password("password").roles("USER", "ADMIN").build(); return new MapReactiveUserDetailsService(user, admin); }
@Bean public MapReactiveUserDetailsService userDetailsRepository() { UserDetails user = User.withDefaultPasswordEncoder().username("user").password("password").roles("USER").build(); UserDetails admin = User.withDefaultPasswordEncoder().username("admin").password("password").roles("USER","ADMIN").build(); return new MapReactiveUserDetailsService(user, admin); }
@Bean public MapReactiveUserDetailsService userDetailsRepository() { UserDetails rob = User.withDefaultPasswordEncoder().username("test").password("password").roles("USER").build(); UserDetails admin = User.withDefaultPasswordEncoder().username("admin").password("password").roles("USER","ADMIN").build(); return new MapReactiveUserDetailsService(rob, admin); }
@Bean public MapReactiveUserDetailsService userDetailsRepository() { UserDetails user = User.withDefaultPasswordEncoder().username("user").password("password").roles("USER").build(); UserDetails admin = User.withDefaultPasswordEncoder().username("admin").password("password").roles("USER", "ADMIN").build(); return new MapReactiveUserDetailsService(user, admin); }
@Bean public ReactiveUserDetailsService singleUserDetailsService( final SingleUserProperties singleUserProperties ) { return new MapReactiveUserDetailsService(singleUserProperties.asUser()); }
@Bean public ReactiveUserDetailsService userDetailsService() { return new MapReactiveUserDetailsService(User.withUsername("Bob").password("bobby").roles("USER").build()); }
@Bean public MapReactiveUserDetailsService reactiveUserDetailsService() { UserDetails user = User.withUsername("user").password("{noop}password").roles("USER").build(); return new MapReactiveUserDetailsService(user); }