@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.security.authentication.AuthenticationManager.class) @ConditionalOnBean(value=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"}) public class UserDetailsServiceAutoConfiguration extends Object
Auto-configuration
for a Spring Security in-memory
AuthenticationManager
. Adds an InMemoryUserDetailsManager
with a
default user and generated password. This can be disabled by providing a bean of type
AuthenticationManager
, AuthenticationProvider
or
UserDetailsService
.Constructor and Description |
---|
UserDetailsServiceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
InMemoryUserDetailsManager |
inMemoryUserDetailsManager(SecurityProperties properties,
ObjectProvider<PasswordEncoder> passwordEncoder) |
@Bean @ConditionalOnMissingBean(type="org.springframework.security.oauth2.client.registration.ClientRegistrationRepository") @Lazy public InMemoryUserDetailsManager inMemoryUserDetailsManager(SecurityProperties properties, ObjectProvider<PasswordEncoder> passwordEncoder)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.