Since security disabling is really based on the present of custom
WebSecurityConfigurerAdapter add such an implementation to the
DisableSecurityConfiguration internal @Configuration enabled
by the http.secured = false.
The root of cause that Spring Boot's ManagementWebSecurityAutoConfiguration
doesn't register its custom ApplicationNoWebSecurityConfigurerAdapter
when we specify management.security.enabled=false.
Meanwhile all other WebSecurityConfigurerAdapter s aren't reachable because
of @ConditionalOnMissingBean(WebSecurityConfiguration.class) on the
SpringBootWebSecurityConfiguration
Resolves spring-cloud-stream-app-starters/http#8
Since security disabling is really based on the present of custom
WebSecurityConfigurerAdapter
add such an implementation to theDisableSecurityConfiguration
internal@Configuration
enabled by thehttp.secured = false
.The root of cause that Spring Boot's
ManagementWebSecurityAutoConfiguration
doesn't register its customApplicationNoWebSecurityConfigurerAdapter
when we specifymanagement.security.enabled=false
. Meanwhile all otherWebSecurityConfigurerAdapter
s aren't reachable because of@ConditionalOnMissingBean(WebSecurityConfiguration.class)
on theSpringBootWebSecurityConfiguration