Class InMemoryUserDetailsAutoConfiguration


  • @AutoConfigureBefore(org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration.class)
    @Configuration(proxyBeanMethods=false)
    @ConditionalOnWebApplication(type=SERVLET)
    @ConditionalOnClass(org.springframework.security.authentication.AuthenticationManager.class)
    @ConditionalOnBean(org.springframework.security.config.annotation.ObjectPostProcessor.class)
    @ConditionalOnMissingBean(value={org.springframework.security.authentication.AuthenticationManager.class,org.springframework.security.authentication.AuthenticationProvider.class,org.springframework.security.core.userdetails.UserDetailsService.class},
                              type={"org.springframework.security.oauth2.jwt.JwtDecoder","org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector"})
    @EnableConfigurationProperties({org.springframework.boot.autoconfigure.security.SecurityProperties.class,AuthProperties.class})
    public class InMemoryUserDetailsAutoConfiguration
    extends Object
    The in memory user details auto configuration.
    Author:
    Christan Bremer
    • Constructor Detail

      • InMemoryUserDetailsAutoConfiguration

        public InMemoryUserDetailsAutoConfiguration()
    • Method Detail

      • inMemoryUserDetailsManager

        @Bean
        @ConditionalOnMissingBean(type="org.springframework.security.oauth2.client.registration.ClientRegistrationRepository")
        @Lazy
        public org.springframework.security.provisioning.InMemoryUserDetailsManager inMemoryUserDetailsManager​(org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties,
                                                                                                               AuthProperties authProperties,
                                                                                                               org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoder)
        Creates an in memory user details manager bean.
        Parameters:
        securityProperties - the security properties
        authProperties - the auth properties
        passwordEncoder - the password encoder
        Returns:
        the in memory user details manager