From 8ad91287d98014f540ccbc906efe9c2a517d6a70 Mon Sep 17 00:00:00 2001 From: Logan Kulinski Date: Mon, 6 Mar 2023 19:27:37 -0600 Subject: [PATCH 1/2] Fix Broken Link Closes gh-12824 --- docs/modules/ROOT/pages/servlet/oauth2/login/core.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/oauth2/login/core.adoc b/docs/modules/ROOT/pages/servlet/oauth2/login/core.adoc index 3fa149ee09..03283e3a4b 100644 --- a/docs/modules/ROOT/pages/servlet/oauth2/login/core.adoc +++ b/docs/modules/ROOT/pages/servlet/oauth2/login/core.adoc @@ -5,7 +5,7 @@ Spring Boot 2.x brings full auto-configuration capabilities for OAuth 2.0 Login. -This section shows how to configure the {gh-samples-url}/boot/oauth2login[*OAuth 2.0 Login sample*] by using _Google_ as the _Authentication Provider_ and covers the following topics: +This section shows how to configure the {gh-samples-url}/servlet/spring-boot/java/oauth2/login[*OAuth 2.0 Login sample*] by using _Google_ as the _Authentication Provider_ and covers the following topics: * <> * <> From 4154ed543a26e7dc7478dc9022ab3969d64a4363 Mon Sep 17 00:00:00 2001 From: el-hopaness-romtic <60661917+el-hopaness-romtic@users.noreply.github.com> Date: Thu, 16 Feb 2023 13:02:47 +0300 Subject: [PATCH 2/2] Fix .access(...) parameter --- .../ROOT/pages/servlet/authorization/expression-based.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc b/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc index 389ebf581e..49b213ba78 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc @@ -211,7 +211,7 @@ You could refer to the method using: ---- http .authorizeHttpRequests(authorize -> authorize - .requestMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,#userId)") + .requestMatchers("/user/{userId}/**").access(new WebExpressionAuthorizationManager("@webSecurity.checkUserId(authentication,#userId)")) ... ); ----