Skip to content

Authorizing websocket connection with connectionParams #263

Answered by enisdenjo
devmentality0 asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot provide custom headers to a WebSocket upgrade request.

The connectionParams is the payload part of the ConnectionInit message inside an established WebSocket connection and is available on the server through the Context. Read the "ws server and client auth usage with token expiration, validation and refresh" recipe for inspiration.

Furthermore, please also read: graphql/graphql-over-http#140 (comment).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants