From 930b8ccb113312731916fea5baf8ccc976018960 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Mon, 27 May 2024 20:31:05 +0100 Subject: [PATCH] Update READMEs --- README.md | 7 ++++++- websocket-authentication/README.md | 13 ++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c88dc1..5c2350d 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,9 @@ Repository that hosts [Spring for GraphQL](https://github.com/spring-projects/sp # Community Samples -- [PetClinic](https://github.com/spring-petclinic/spring-petclinic-graphql) +- [GraphQL Defer](https://github.com/felipe-gdr/spring-graphql-defer) -- demonstrate use of + [incremental delivery](https://github.com/graphql/defer-stream-wg) addition to GraphQL spec through experimental support GraphQL Java 22. +- [Multipart GraphQL](https://github.com/nkonev/multipart-graphql-demo) -- demonstrate use of the + [multipart-spring-graphql](https://github.com/nkonev/multipart-spring-graphql) library. +- [PetClinic](https://github.com/spring-petclinic/spring-petclinic-graphql) -- Variant of the + [original Petclinic](https://github.com/spring-projects/spring-petclinic) based on Spring for GraphQL. diff --git a/websocket-authentication/README.md b/websocket-authentication/README.md index 8919b6e..b5e9963 100644 --- a/websocket-authentication/README.md +++ b/websocket-authentication/README.md @@ -1,6 +1,17 @@ # Overview -GraphQL over WebSocket with an authentication token passed through the `"connection_init"` message. +GraphQL over WebSocket with authentication through the `"connection_init"` message. +[GreetingController](src/main/java/com/example/greeting/GreetingController.java) demonstrates +access to the authenticated user. + +# Features + +- WebSocket client and server. +- Intercept `"connection_init"` message on client and server. +- Encode and decode JWT token. +- Context propagation and access to `Authentication` in [GreetingController](src/main/java/com/example/greeting/GreetingController.java). +- Integration tests with live server. +- WebMvc or WebFlux as server transport. # Configuration