Expand description
Authentication and identity extraction for HTTP and WebSocket connections.
This module provides functions to extract user identity from request headers, tokens, and WebSocket authentication messages.
§Security Note
The current implementation provides a framework for authentication but requires
proper implementation of token validation before production use. The validate_*
functions are stubs that should be connected to actual authentication services.
Enums§
- Auth
Error - Authentication error types.
Functions§
- extract_
identity_ from_ api_ key - Extract identity from an API key.
- extract_
identity_ from_ auth_ header - Extract identity from HTTP Authorization header value.
- extract_
identity_ from_ ws_ auth - Extract identity from WebSocket authentication message.
Type Aliases§
- Auth
Result - Result type for authentication operations.