Browse Source

Fix method call example on documentation

Vinícius Hashimoto 3 years ago
parent
commit
11a74a2926

+ 2 - 2
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 {
 SecurityFilterChain web(HttpSecurity http) throws Exception {
     http
     http
         .authorizeHttpRequests((authorize) -> authorize
         .authorizeHttpRequests((authorize) -> authorize
-            .anyRequest.access(new CustomAuthorizationManager());
+            .anyRequest().access(new CustomAuthorizationManager());
         )
         )
         // ...
         // ...
 
 
@@ -183,7 +183,7 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
     http
     http
         .authorizeHttpRequests((authorize) -> authorize
         .authorizeHttpRequests((authorize) -> authorize
             .shouldFilterAllDispatcherTypes(false)
             .shouldFilterAllDispatcherTypes(false)
-            .anyRequest.authenticated()
+            .anyRequest().authenticated()
         )
         )
         // ...
         // ...