From 11a74a292602efb2d3ca13e492b5dcfb8476ba60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Hashimoto?= Date: Thu, 16 Jun 2022 18:58:51 -0300 Subject: [PATCH] Fix method call example on documentation --- .../pages/servlet/authorization/authorize-http-requests.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc index e96467ef606..5711da07805 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc @@ -161,7 +161,7 @@ Or you can provide it for all requests as seen below: SecurityFilterChain web(HttpSecurity http) throws Exception { http .authorizeHttpRequests((authorize) -> authorize - .anyRequest.access(new CustomAuthorizationManager()); + .anyRequest().access(new CustomAuthorizationManager()); ) // ... @@ -183,7 +183,7 @@ SecurityFilterChain web(HttpSecurity http) throws Exception { http .authorizeHttpRequests((authorize) -> authorize .shouldFilterAllDispatcherTypes(false) - .anyRequest.authenticated() + .anyRequest().authenticated() ) // ...