Class UserDetailsServiceAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(org.springframework.security.authentication.AuthenticationManager.class)
@Conditional(org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration.MissingAlternativeOrUserPropertiesConfigured.class)
@ConditionalOnBean(org.springframework.security.config.ObjectPostProcessor.class)
@ConditionalOnMissingBean(value={org.springframework.security.authentication.AuthenticationManager.class,org.springframework.security.authentication.AuthenticationProvider.class,org.springframework.security.core.userdetails.UserDetailsService.class,org.springframework.security.authentication.AuthenticationManagerResolver.class},
type="org.springframework.security.oauth2.jwt.JwtDecoder")
@ConditionalOnWebApplication(type=SERVLET)
public class UserDetailsServiceAutoConfiguration
extends Object
Auto-configuration
for a Spring Security in-memory
AuthenticationManager
. Adds an InMemoryUserDetailsManager
with a
default user and generated password.- Since:
- 2.0.0
- Author:
- Dave Syer, Rob Winch, Madhura Bhave, Lasse Wulff
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninMemoryUserDetailsManager
(SecurityProperties properties, ObjectProvider<PasswordEncoder> passwordEncoder)
-
Constructor Details
-
UserDetailsServiceAutoConfiguration
public UserDetailsServiceAutoConfiguration()
-
-
Method Details
-
inMemoryUserDetailsManager
@Bean public InMemoryUserDetailsManager inMemoryUserDetailsManager(SecurityProperties properties, ObjectProvider<PasswordEncoder> passwordEncoder)
-