Skip to content

Commit b17d4e2

Browse files
committed
Add @AuthenticationPrincipal to reference
See gh-272
1 parent 0842deb commit b17d4e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-graphql-docs/src/docs/asciidoc/index.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,10 @@ See <<controllers-schema-mapping-data-loader>>.
10321032
| For access to the context from the `DataFetchingEnvironment`.
10331033

10341034
| `java.security.Principal`
1035-
| Obtained from Spring Security context, if available.
1035+
| Obtained from the Spring Security context, if available.
1036+
1037+
| `@AuthenticationPrincipal`
1038+
| For access to `Authentication#getPrincipal()` from the Spring Security context.
10361039

10371040
| `DataFetchingFieldSelectionSet`
10381041
| For access to the selection set for the query through the `DataFetchingEnvironment`.

0 commit comments

Comments
 (0)