You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tree:
8deae8275e
1.0.x
1.1.x
1.2.x
1.3.x
1.4.x
1.5.x
2.0.x
2.1.x
2.2.x
2.3.x
2.4.x
2.5.x
2.6.x
2.7.x
3.0.x
3.1.x
3.2.x
3.3.x
3.4.x
3.5.x
4.0.x
docs-build
main
temp/gradle-windows-problem
v0.5.0.M1
v0.5.0.M2
v0.5.0.M3
v0.5.0.M4
v0.5.0.M5
v0.5.0.M6
v0.5.0.M7
v1.0.0.RC1
v1.0.0.RC2
v1.0.0.RC3
v1.0.0.RC4
v1.0.0.RC5
v1.0.0.RELEASE
v1.0.1.RELEASE
v1.0.2.RELEASE
v1.1.0.M1
v1.1.0.M2
v1.1.0.RC1
v1.1.0.RELEASE
v1.1.1.RELEASE
v1.1.10.RELEASE
v1.1.11.RELEASE
v1.1.12.RELEASE
v1.1.2.RELEASE
v1.1.3.RELEASE
v1.1.4.RELEASE
v1.1.5.RELEASE
v1.1.6.RELEASE
v1.1.7.RELEASE
v1.1.8.RELEASE
v1.1.9.RELEASE
v1.2.0.M1
v1.2.0.M2
v1.2.0.RC1
v1.2.0.RC2
v1.2.0.RELEASE
v1.2.1.RELEASE
v1.2.2.RELEASE
v1.2.3.RELEASE
v1.2.4.RELEASE
v1.2.5.RELEASE
v1.2.6.RELEASE
v1.2.7.RELEASE
v1.2.8.RELEASE
v1.3.0.M1
v1.3.0.M2
v1.3.0.M3
v1.3.0.M4
v1.3.0.M5
v1.3.0.RC1
v1.3.0.RELEASE
v1.3.1.RELEASE
v1.3.2.RELEASE
v1.3.3.RELEASE
v1.3.4.RELEASE
v1.3.5.RELEASE
v1.3.6.RELEASE
v1.3.7.RELEASE
v1.3.8.RELEASE
v1.4.0.M1
v1.4.0.M2
v1.4.0.M3
v1.4.0.RC1
v1.4.0.RELEASE
v1.4.1.RELEASE
v1.4.2.RELEASE
v1.4.3.RELEASE
v1.4.4.RELEASE
v1.4.5.RELEASE
v1.4.6.RELEASE
v1.4.7.RELEASE
v1.5.0.RC1
v1.5.0.RELEASE
v1.5.1.RELEASE
v1.5.10.RELEASE
v1.5.11.RELEASE
v1.5.12.RELEASE
v1.5.13.RELEASE
v1.5.14.RELEASE
v1.5.15.RELEASE
v1.5.16.RELEASE
v1.5.17.RELEASE
v1.5.18.RELEASE
v1.5.19.RELEASE
v1.5.2.RELEASE
v1.5.20.RELEASE
v1.5.21.RELEASE
v1.5.22.RELEASE
v1.5.3.RELEASE
v1.5.4.RELEASE
v1.5.5.RELEASE
v1.5.6.RELEASE
v1.5.7.RELEASE
v1.5.8.RELEASE
v1.5.9.RELEASE
v2.0.0.M1
v2.0.0.M2
v2.0.0.M3
v2.0.0.M4
v2.0.0.M5
v2.0.0.M6
v2.0.0.M7
v2.0.0.RC1
v2.0.0.RC2
v2.0.0.RELEASE
v2.0.1.RELEASE
v2.0.2.RELEASE
v2.0.3.RELEASE
v2.0.4.RELEASE
v2.0.5.RELEASE
v2.0.6.RELEASE
v2.0.7.RELEASE
v2.0.8.RELEASE
v2.0.9.RELEASE
v2.1.0.M1
v2.1.0.M2
v2.1.0.M3
v2.1.0.M4
v2.1.0.RC1
v2.1.0.RELEASE
v2.1.1.RELEASE
v2.1.10.RELEASE
v2.1.11.RELEASE
v2.1.12.RELEASE
v2.1.13.RELEASE
v2.1.14.RELEASE
v2.1.15.RELEASE
v2.1.16.RELEASE
v2.1.17.RELEASE
v2.1.18.RELEASE
v2.1.2.RELEASE
v2.1.3.RELEASE
v2.1.4.RELEASE
v2.1.5.RELEASE
v2.1.6.RELEASE
v2.1.7.RELEASE
v2.1.8.RELEASE
v2.1.9.RELEASE
v2.2.0.M1
v2.2.0.M2
v2.2.0.M3
v2.2.0.M4
v2.2.0.M5
v2.2.0.M6
v2.2.0.RC1
v2.2.0.RELEASE
v2.2.1.RELEASE
v2.2.10.RELEASE
v2.2.11.RELEASE
v2.2.12.RELEASE
v2.2.13.RELEASE
v2.2.2.RELEASE
v2.2.3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.10
v3.0.11
v3.0.12
v3.0.13
v3.0.2
v3.0.3
v3.0.4
v3.0.5
v3.0.6
v3.0.7
v3.0.8
v3.0.9
v3.1.0
v3.1.0-M1
v3.1.0-M2
v3.1.0-RC1
v3.1.0-RC2
v3.1.1
v3.1.10
v3.1.11
v3.1.12
v3.1.2
v3.1.3
v3.1.4
v3.1.5
v3.1.6
v3.1.7
v3.1.8
v3.1.9
v3.2.0
v3.2.0-M1
v3.2.0-M2
v3.2.0-M3
v3.2.0-RC1
v3.2.0-RC2
v3.2.1
v3.2.10
v3.2.11
v3.2.12
v3.2.2
v3.2.3
v3.2.4
v3.2.5
v3.2.6
v3.2.7
v3.2.8
v3.2.9
v3.3.0
v3.3.0-M1
v3.3.0-M2
v3.3.0-M3
v3.3.0-RC1
v3.3.1
v3.3.10
v3.3.11
v3.3.12
v3.3.13
v3.3.2
v3.3.3
v3.3.4
v3.3.5
v3.3.6
v3.3.7
v3.3.8
v3.3.9
v3.4.0
v3.4.0-M1
v3.4.0-M2
v3.4.0-M3
v3.4.0-RC1
v3.4.1
v3.4.10
v3.4.11
v3.4.12
v3.4.13
v3.4.2
v3.4.3
v3.4.4
v3.4.5
v3.4.6
v3.4.7
v3.4.8
v3.4.9
v3.5.0
v3.5.0-M1
v3.5.0-M2
v3.5.0-M3
v3.5.0-RC1
v3.5.1
v3.5.10
v3.5.2
v3.5.3
v3.5.4
v3.5.5
v3.5.6
v3.5.7
v3.5.8
v3.5.9
v4.0.0
v4.0.0-M1
v4.0.0-M2
v4.0.0-M3
v4.0.0-RC1
v4.0.0-RC2
v4.0.1
v4.0.2
v4.1.0-M1
${ noResults }
spring-boot/spring-boot-project/spring-boot-autoconfigure
There are some notable differences in the behavior of Spring Security's reactive and servlet-based web security. Notably, Servlet-based web security (`@EnableWebSecurity`) works without any authentication manager, rejecting requests as not authorized. By contrast reactive-based web security (`@EnableWebFluxSecurity`) fails to start up when there's no authentication manager, either provided directly as a bean or derived from a ReactiveUserDetailsService. There are also further differences at runtime where empty Monos from all ReactiveAuthenticationManagers results in an internal error and a 500 response whereas a similar situation in the servlet implementation results in a 401. Previously, to accommodate these differences in behavior, Spring Boot's auto-configuration would behave differently. In the Servlet case, web security would be enabled whenever the necessary dependencies were on the classpath. In the reactive case, web security would back off in the absence of an authentication manager to prevent a start up failure. While this difference is rooted in Spring Security, it is undesirable and something that we want to avoid Spring Boot users being exposed to where possible. Unfortunately, the situation is more likely to occur than before as ReactiveUserDetailsServiceAutoConfiguration now backs off more readily (gh-35338). This makes it more likely that the context will contain neither a reactive authetication manager not a reactive user details service. This commit reworks the auto-configurations related to reactive security. ReactiveSecurityAutoConfiguration will now auto-configure an "empty" reactive authentication manager that denies access through Mono.error in the absence of a ReactiveAuthenticationManager, ReactiveUserDetailsService, or SecurityWebFilterChain. The last of these is to allow for the situation where a filter chain has been defined with an authentication manager configured directly on it. This configuration of an authentication manager allows `@EnableWebFluxSecurity` to be auto-configured more readily, removing one of the differences between reactive- and Servlet-based security. Corresponding updates to the auto-configurations for reactive OAuth2 support have also been made. They no longer try to auto-configure `@EnableWebFluxSecurity`, relying instead upon ReactiveSecurityAutoConfiguration, which they are ordered before, to do that instead. Closes gh-38713 |
2 years ago | |
|---|---|---|
| .. | ||
| src | Align reactive web security more closely with servlet web security | 2 years ago |
| build.gradle | Merge branch '3.1.x' | 2 years ago |