1
0
mirror of synced 2026-08-05 09:47:05 +00:00

Fix broken doc links

Issue gh-8050
This commit is contained in:
Josh Cummings
2020-03-03 17:26:15 -07:00
parent 85b0e468ad
commit b4cab71fd3
@@ -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, <<a mock `OAuth2AuthorizedClient`,testing-oauth2-client>> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`.
Also, <<testing-oauth2-client,a mock `OAuth2AuthorizedClient`>> 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, <<a mock `OAuth2AuthorizedClient`,testing-oauth2-client>> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`.
Also, <<testing-oauth2-client,a mock `OAuth2AuthorizedClient`>> associated with the user is registered to an `HttpSessionOAuth2AuthorizedClientRepository`.
By default, the set of attributes contains only `sub`: