Skip to content

Add channels-jwt-subprotocol to community projects - #2239

Open
Aggosh wants to merge 1 commit into
django:mainfrom
Aggosh:add-channels-jwt-subprotocol
Open

Aggosh wants to merge 1 commit into
django:mainfrom
Aggosh:add-channels-jwt-subprotocol

Conversation

@Aggosh

@Aggosh Aggosh commented Nov 10, 2026

Copy link
Copy Markdown

channels-jwt-subprotocol authenticates WebSockets with a JWT sent in Sec-WebSocket-Protocol rather than the query string, so the token stays out of access logs. It also handles two handshake details: it echoes only the marker, never the token, and it accepts before closing so the 4401 close code reaches the client (a close before accept() becomes an HTTP 403 on both Daphne and Uvicorn). It is tested against live Daphne and Uvicorn servers on Channels 4.0 and 4.3.

Source: https://github.com/YouPanel/channels-jwt-subprotocol · PyPI: https://pypi.org/project/channels-jwt-subprotocol/

Disclosure: I wrote it for my own project's dashboard.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant