Class InMemoryUserDetailsAutoConfiguration
- java.lang.Object
-
- org.bremersee.security.authentication.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 Summary
Constructors Constructor Description InMemoryUserDetailsAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 propertiesauthProperties
- the auth propertiespasswordEncoder
- the password encoder- Returns:
- the in memory user details manager
-
-