Skip to content

Commit 0b155a1

Browse files
committed
Merge branch '6.1.x' into 6.2.x
Closes gh-14392
2 parents ec0dbbf + e11ed2d commit 0b155a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/modules/ROOT/pages/servlet/configuration/java.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ It is configured with the following default implementation:
173173
@Bean
174174
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
175175
http
176-
.authorizeRequests(authorize -> authorize
176+
.authorizeHttpRequests(authorize -> authorize
177177
.anyRequest().authenticated()
178178
)
179179
.formLogin(withDefaults())
@@ -326,7 +326,7 @@ class MyCustomDsl : AbstractHttpConfigurer<MyCustomDsl, HttpSecurity>() {
326326

327327
[NOTE]
328328
====
329-
This is actually how methods like `HttpSecurity.authorizeRequests()` are implemented.
329+
This is actually how methods like `HttpSecurity.authorizeHttpRequests()` are implemented.
330330
====
331331

332332
You can then use the custom DSL:
@@ -451,7 +451,7 @@ For example, to configure the `filterSecurityPublishAuthorizationSuccess` proper
451451
@Bean
452452
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
453453
http
454-
.authorizeRequests(authorize -> authorize
454+
.authorizeHttpRequests(authorize -> authorize
455455
.anyRequest().authenticated()
456456
.withObjectPostProcessor(new ObjectPostProcessor<FilterSecurityInterceptor>() {
457457
public <O extends FilterSecurityInterceptor> O postProcess(

docs/modules/ROOT/pages/servlet/configuration/kotlin.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import org.springframework.security.config.annotation.web.invoke
2424
@Bean
2525
open fun filterChain(http: HttpSecurity): SecurityFilterChain {
2626
http {
27-
authorizeRequests {
27+
authorizeHttpRequests {
2828
authorize(anyRequest, authenticated)
2929
}
3030
formLogin { }
@@ -81,7 +81,7 @@ class MultiHttpSecurityConfig {
8181
open fun apiFilterChain(http: HttpSecurity): SecurityFilterChain {
8282
http {
8383
securityMatcher("/api/**") <3>
84-
authorizeRequests {
84+
authorizeHttpRequests {
8585
authorize(anyRequest, hasRole("ADMIN"))
8686
}
8787
httpBasic { }
@@ -92,7 +92,7 @@ class MultiHttpSecurityConfig {
9292
@Bean <4>
9393
open fun formLoginFilterChain(http: HttpSecurity): SecurityFilterChain {
9494
http {
95-
authorizeRequests {
95+
authorizeHttpRequests {
9696
authorize(anyRequest, authenticated)
9797
}
9898
formLogin { }

0 commit comments

Comments
 (0)