@AutoConfiguration(before=ReactiveSecurityAutoConfiguration.class, after={HealthEndpointAutoConfiguration.class,InfoEndpointAutoConfiguration.class,WebEndpointAutoConfiguration.class,ReactiveOAuth2ClientAutoConfiguration.class,ReactiveOAuth2ResourceServerAutoConfiguration.class}) @ConditionalOnClass(value={org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity.class,org.springframework.security.web.server.WebFilterChainProxy.class}) @ConditionalOnMissingBean(value={org.springframework.security.web.server.SecurityWebFilterChain.class,org.springframework.security.web.server.WebFilterChainProxy.class}) @ConditionalOnWebApplication(type=REACTIVE) public class ReactiveManagementWebSecurityAutoConfiguration extends Object
Auto-configuration
for Reactive Spring Security when
actuator is on the classpath. Specifically, it permits access to the health endpoint
while securing everything else.Constructor and Description |
---|
ReactiveManagementWebSecurityAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
SecurityWebFilterChain |
springSecurityFilterChain(ServerHttpSecurity http,
PreFlightRequestHandler handler) |
public ReactiveManagementWebSecurityAutoConfiguration()
@Bean public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http, PreFlightRequestHandler handler)