Class ReactiveUserDetailsServiceAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration
@AutoConfiguration(after=RSocketMessagingAutoConfiguration.class)
@ConditionalOnClass(org.springframework.security.authentication.ReactiveAuthenticationManager.class)
@ConditionalOnMissingBean(value={org.springframework.security.authentication.ReactiveAuthenticationManager.class,org.springframework.security.core.userdetails.ReactiveUserDetailsService.class,org.springframework.security.authentication.ReactiveAuthenticationManagerResolver.class},
type={"org.springframework.security.oauth2.jwt.ReactiveJwtDecoder","org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector"})
@Conditional(org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration.ReactiveUserDetailsServiceCondition.class)
@EnableConfigurationProperties(SecurityProperties.class)
public class ReactiveUserDetailsServiceAutoConfiguration
extends Object
Default user
@Configuration
for a reactive web application.
Configures a ReactiveUserDetailsService
with a default user and generated
password. This backs-off completely if there is a bean of type
ReactiveUserDetailsService
, ReactiveAuthenticationManager
, or
ReactiveAuthenticationManagerResolver
.- Since:
- 2.0.0
- Author:
- Madhura Bhave
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.MapReactiveUserDetailsService
reactiveUserDetailsService
(SecurityProperties properties, ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoder)
-
Constructor Details
-
ReactiveUserDetailsServiceAutoConfiguration
public ReactiveUserDetailsServiceAutoConfiguration()
-
-
Method Details
-
reactiveUserDetailsService
@Bean public org.springframework.security.core.userdetails.MapReactiveUserDetailsService reactiveUserDetailsService(SecurityProperties properties, ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoder)
-