Add @AuthenticationPrincipal to reference

See gh-272
This commit is contained in:
rstoyanchev
2022-02-08 20:58:55 +00:00
parent 0842deb593
commit b17d4e2425

View File

@@ -1032,7 +1032,10 @@ See <<controllers-schema-mapping-data-loader>>.
| For access to the context from the `DataFetchingEnvironment`.
| `java.security.Principal`
| Obtained from Spring Security context, if available.
| Obtained from the Spring Security context, if available.
| `@AuthenticationPrincipal`
| For access to `Authentication#getPrincipal()` from the Spring Security context.
| `DataFetchingFieldSelectionSet`
| For access to the selection set for the query through the `DataFetchingEnvironment`.