3 comments (3 comments)0 reactions (0 reactions)1 assignee (1 assignee)Java9,079 stars (9,079 stars)2,822 forks (2,822 forks)batch import
enhancementgood first issuenew features
Description
登录鉴权要放到长连接里面的第一帧命令里吧。登录可以请求http返回token,长连接建立之后,第一帧发送的应该是login 鉴权命令,成功后才能后续操作。
Contributor guide
- Tech stack
- java
- Domain
- backendauthentication
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-3 hours
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- Basic understanding of cim architectureJavaWebSocket authentication
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 20
- Research direction
- Review the current login flow in cim server (likely based on Netty). The issue suggests using HTTP to obtain a token and then sending a login command as the first frame over the WebSocket. Investigate the existing WebSocket handler and authentication logic in the codebase. Consider how to integrate token validation and session management without breaking existing functionality.