From fbfa13bd479eaa2f7c75ef7fb10ed88e650a048a Mon Sep 17 00:00:00 2001 From: Eleftheria Stein-Kousathana Date: Mon, 19 Dec 2022 17:17:43 +0200 Subject: [PATCH] Fix OAuth 2.0 testing docs --- docs/modules/ROOT/pages/servlet/test/mockmvc/oauth2.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/test/mockmvc/oauth2.adoc b/docs/modules/ROOT/pages/servlet/test/mockmvc/oauth2.adoc index 5cd6bb8dc0..5c0a7e7937 100644 --- a/docs/modules/ROOT/pages/servlet/test/mockmvc/oauth2.adoc +++ b/docs/modules/ROOT/pages/servlet/test/mockmvc/oauth2.adoc @@ -296,7 +296,7 @@ fun foo(@AuthenticationPrincipal oauth2User: OAuth2User): String? { ---- ==== -In that case, we can tell Spring Security to include a default `OAuth2User` using the `oauth2User` xref:servlet/test/mockmvc/request-post-processors.adoc[`RequestPostProcessor`], like so: +In that case, we can tell Spring Security to include a default `OAuth2User` using the `oauth2Login` xref:servlet/test/mockmvc/request-post-processors.adoc[`RequestPostProcessor`], like so: ==== .Java