From b17d4e24258989df2c8d4cadc7fb564e6d90d166 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Tue, 8 Feb 2022 20:58:55 +0000 Subject: [PATCH] Add `@AuthenticationPrincipal` to reference See gh-272 --- spring-graphql-docs/src/docs/asciidoc/index.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-graphql-docs/src/docs/asciidoc/index.adoc b/spring-graphql-docs/src/docs/asciidoc/index.adoc index c03e473c..37cfb563 100644 --- a/spring-graphql-docs/src/docs/asciidoc/index.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/index.adoc @@ -1032,7 +1032,10 @@ See <>. | 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`.