Skip to content

Commit f43996b

Browse files
committed
Add OAuth2AuthenticatedPrincipal Link
Fixes gh-7406
1 parent 5d0e80c commit f43996b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/manual/src/docs/asciidoc/_includes/reactive/oauth2/resource-server.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ Given an Opaque Token, Resource Server will
608608
2. Inspect the response for an `{ 'active' : true }` attribute
609609
3. Map each scope to an authority with the prefix `SCOPE_`
610610

611-
The resulting `Authentication#getPrincipal`, by default, is a Spring Security `OAuth2AuthenticatedPrincipal` object, and `Authentication#getName` maps to the token's `sub` property, if one is present.
611+
The resulting `Authentication#getPrincipal`, by default, is a Spring Security `{security-api-url}org/springframework/security/oauth2/core/OAuth2AuthenticatedPrincipal.html[OAuth2AuthenticatedPrincipal]` object, and `Authentication#getName` maps to the token's `sub` property, if one is present.
612612

613613
From here, you may want to jump to:
614614

docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-resourceserver.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ Given an Opaque Token, Resource Server will
746746
2. Inspect the response for an `{ 'active' : true }` attribute
747747
3. Map each scope to an authority with the prefix `SCOPE_`
748748

749-
The resulting `Authentication#getPrincipal`, by default, is a Spring Security `OAuth2AuthenticatedPrincipal` object, and `Authentication#getName` maps to the token's `sub` property, if one is present.
749+
The resulting `Authentication#getPrincipal`, by default, is a Spring Security `{security-api-url}org/springframework/security/oauth2/core/OAuth2AuthenticatedPrincipal.html[OAuth2AuthenticatedPrincipal]` object, and `Authentication#getName` maps to the token's `sub` property, if one is present.
750750

751751
From here, you may want to jump to:
752752

0 commit comments

Comments
 (0)