Class ReactiveInMemoryUserDetailsAutoConfiguration


  • @Configuration(proxyBeanMethods=false)
    @ConditionalOnClass(org.springframework.security.authentication.ReactiveAuthenticationManager.class)
    @ConditionalOnMissingBean(value={org.springframework.security.authentication.ReactiveAuthenticationManager.class,org.springframework.security.core.userdetails.ReactiveUserDetailsService.class},
                              type={"org.springframework.security.oauth2.jwt.ReactiveJwtDecoder","org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector"})
    @Conditional(org.bremersee.security.authentication.ReactiveInMemoryUserDetailsAutoConfiguration.ReactiveUserDetailsServiceCondition.class)
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.rsocket.RSocketMessagingAutoConfiguration.class)
    @AutoConfigureBefore(org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration.class)
    @EnableConfigurationProperties({org.springframework.boot.autoconfigure.security.SecurityProperties.class,AuthProperties.class})
    public class ReactiveInMemoryUserDetailsAutoConfiguration
    extends Object
    The reactive in memory user details auto configuration.
    Author:
    Christian Bremer
    • Constructor Detail

      • ReactiveInMemoryUserDetailsAutoConfiguration

        public ReactiveInMemoryUserDetailsAutoConfiguration()
    • Method Detail

      • reactiveUserDetailsService

        @Bean
        public org.springframework.security.core.userdetails.MapReactiveUserDetailsService reactiveUserDetailsService​(org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties,
                                                                                                                      AuthProperties authProperties,
                                                                                                                      org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoder)
        Creates a reactive user details service bean.
        Parameters:
        securityProperties - the security properties
        authProperties - the auth properties
        passwordEncoder - the password encoder
        Returns:
        the map reactive user details service