@Configuration @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}) public class AuthenticationManagerConfiguration extends Object
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 |
---|
AuthenticationManagerConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getOrDeducePassword(SecurityProperties.User user,
org.springframework.security.crypto.password.PasswordEncoder encoder) |
org.springframework.security.provisioning.InMemoryUserDetailsManager |
inMemoryUserDetailsManager(SecurityProperties properties,
org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoder) |
@Bean @ConditionalOnMissingBean(type="org.springframework.security.oauth2.client.registration.ClientRegistrationRepository") public org.springframework.security.provisioning.InMemoryUserDetailsManager inMemoryUserDetailsManager(SecurityProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoder) throws Exception
Exception
public String getOrDeducePassword(SecurityProperties.User user, org.springframework.security.crypto.password.PasswordEncoder encoder)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.