mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Previously, the auto-configuration of reactive OAuth 2 resource server based web security did not back off when a custom SecurityWebFilterChain was defined. This did not match the equivalent servlet-based auto-configuration which backs off when a custom SecurityFilterChain is defined. This commit updates the reactive auto-configuration to behave in the same way as the servlet auto-configuration. A new annotation, @ConditionalOnDefaultReactiveWebSecurity, is introduced. The existing servlet-specific annotation, @ConditionalOnDefaultWebSecurity is deprecated and a replacement named @ConditionalOnDefaultServletWebSecurity is introduced. Fixes gh-50778