From 6c5b3d69c50b4504d4c7173155766dbeef851f06 Mon Sep 17 00:00:00 2001 From: Taeik Lim Date: Fri, 29 Dec 2023 10:48:37 +0900 Subject: [PATCH] Fix broken sample code in Authorize HttpServletRequests Signed-off-by: Taeik Lim --- .../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 244ff724b7..503189d66e 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc @@ -188,7 +188,7 @@ Java:: SecurityFilterChain web(HttpSecurity http) throws Exception { http .authorizeHttpRequests((authorize) -> authorize - .requestMatchers("/endpoint").hasAuthority('USER') + .requestMatchers("/endpoint").hasAuthority("USER") .anyRequest().authenticated() ) // ... @@ -205,7 +205,7 @@ Kotlin:: SecurityFilterChain web(HttpSecurity http) throws Exception { http { authorizeHttpRequests { - authorize("/endpoint", hasAuthority('USER')) + authorize("/endpoint", hasAuthority("USER")) authorize(anyRequest, authenticated) } }