From b4cab71fd3038c5b1bf839f3b0f9cde05acc2a74 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 3 Mar 2020 17:26:15 -0700 Subject: [PATCH] Fix broken doc links Issue gh-8050 --- .../src/docs/asciidoc/_includes/servlet/test/mockmvc.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual/src/docs/asciidoc/_includes/servlet/test/mockmvc.adoc b/docs/manual/src/docs/asciidoc/_includes/servlet/test/mockmvc.adoc index 1070725423..126d8c78cd 100644 --- a/docs/manual/src/docs/asciidoc/_includes/servlet/test/mockmvc.adoc +++ b/docs/manual/src/docs/asciidoc/_includes/servlet/test/mockmvc.adoc @@ -296,7 +296,7 @@ mvc.perform(get("/endpoint").with(oidcLogin())); What this will do is create a mock `OidcUser`, passing it correctly through any authentication APIs so that it's available for your controllers and so on. It contains a mock `OidcUserInfo`, a mock `OidcIdToken`, and a mock `Collection` of granted authorities. -Also, <> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`. +Also, <> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`. By default, the user info has no claims, and the id token has the `sub` claim, like so: @@ -367,7 +367,7 @@ mvc.perform(get("/endpoint").with(oauth2Login())); What this will do is create a mock `OAuth2User`, passing it correctly through any authentication APIs so that it's available for your controllers and so on. It contains a mock set of attributes and a mock `Collection` of granted authorities. -Also, <> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`. +Also, <> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`. By default, the set of attributes contains only `sub`: