Skip to content

ReactiveManagementWebSecurityAutoConfiguration Prevent's oauth2Login from being defaulted #6314

Closed
@jgrandja

Description

@jgrandja

If org.springframework.boot:spring-boot-starter-actuator is on the classpath than ReactiveManagementWebSecurityAutoConfiguration will build a SecurityWebFilterChain, which will get @Autowired to WebFluxSecurityConfiguration.securityWebFilterChains. This configuration path will result in a bypass of OAuth2ClasspathGuard.shouldConfigure(), which is called for the default configuration of SecurityWebFilterChain.

So if oauth2-client is actually on the classpath and the required properties are configured, than ServerHttpSecurity.oauth2Login() will not be applied.

Related spring-cloud-security#171

/cc @rwinch @spencergibb

Metadata

Metadata

Assignees

Labels

for: external-projectFor an external project and not something we can fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions