Expand description
Authentication module for WebSocket connections
This module provides JWT-based authentication for WebSocket connections. Authentication can be enabled/disabled via the REQUIRE_AUTH environment variable.
Structs§
- Claims
- JWT Claims structure
Functions§
- authenticate_
request - Authenticate WebSocket connection request
- is_
auth_ required - Check if authentication is required based on environment variable
- validate_
token - Validate JWT token using JWKS file or JWT_SECRET