Java 类org.springframework.security.core.userdetails.MapReactiveUserDetailsService 实例源码

项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:SecurityConfig.java   
@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);
}
项目:spring-reactive-sample    文件:DemoApplication.java   
@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);
}
项目:configurable-single-user-spring-boot-starter    文件:ReactiveUserDetailsServiceConfiguration.java   
@Bean
public ReactiveUserDetailsService singleUserDetailsService(
        final SingleUserProperties singleUserProperties
) {
    return new MapReactiveUserDetailsService(singleUserProperties.asUser());
}
项目:configurable-single-user-spring-boot-starter    文件:ReactiveUserDetailsServiceConfigurationTest.java   
@Bean
public ReactiveUserDetailsService userDetailsService() {
    return new MapReactiveUserDetailsService(User.withUsername("Bob").password("bobby").roles("USER").build());
}
项目:spring-cloud-gateway    文件:PrincipalNameKeyResolverIntegrationTests.java   
@Bean
public MapReactiveUserDetailsService reactiveUserDetailsService() {
    UserDetails user = User.withUsername("user").password("{noop}password").roles("USER").build();
    return new MapReactiveUserDetailsService(user);
}