You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -212,7 +212,7 @@ mise run test # Recommended for complete validation
212
212
213
213
## Authentication Testing
214
214
215
-
The plugin implements authentication using UUID v4 tokens that are generated for each server session and stored in lock files. This ensures secure connections between Claude CLI and the Neovim WebSocket server.
215
+
The plugin implements authentication using 128-bit tokens (32-char lowercase hex) from the OS CSPRNG that are generated for each server session and stored in lock files. This ensures secure connections between Claude CLI and the Neovim WebSocket server.
216
216
217
217
### Testing Authentication Features
218
218
@@ -340,7 +340,7 @@ Log levels for authentication events:
340
340
### Security Considerations
341
341
342
342
- WebSocket server only accepts local connections (127.0.0.1) for security
343
-
- Authentication tokens are UUID v4 with enhanced entropy
343
+
- Authentication tokens are 128-bit tokens (32-char lowercase hex) from the OS CSPRNG
344
344
- Lock files created at `~/.claude/ide/[port].lock` for Claude CLI discovery
345
345
- All authentication events are logged for security auditing
Copy file name to clipboardExpand all lines: PROTOCOL.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The IDE writes a discovery file to `~/.claude/ide/[port].lock`:
24
24
"workspaceFolders": ["/path/to/project"], // Open folders
25
25
"ideName": "VS Code", // or "Neovim", "IntelliJ", etc.
26
26
"transport": "ws", // WebSocket transport
27
-
"authToken": "550e8400-e29b-41d4-a716-446655440000"// Random UUID for authentication
27
+
"authToken": "a3f1c2d4e5f60718293a4b5c6d7e8f90"// 32-char lowercase hex token (128 bits) from the OS CSPRNG
28
28
}
29
29
```
30
30
@@ -44,7 +44,7 @@ Claude reads the lock files, finds the matching port from the environment, and c
44
44
When Claude connects to the IDE's WebSocket server, it must authenticate using the token from the lock file. The authentication happens via a custom WebSocket header:
0 commit comments