Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication and identity extraction for HTTP and WebSocket connections.

This module provides functions to extract user identity from request headers, auth tokens, and WebSocket authentication messages by delegating to the engine’s AuthService for token validation.

Enums§

AuthError
Authentication error types.

Functions§

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§

AuthResult
Result type for authentication operations.