mdb-engine 0.5.1__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mdb_engine/__init__.py CHANGED
@@ -82,15 +82,19 @@ from .repositories import Entity, MongoRepository, Repository, UnitOfWork
82
82
  from .utils import clean_mongo_doc, clean_mongo_docs
83
83
 
84
84
  __version__ = (
85
- "0.5.0" # Major WebSocket security overhaul - cookie-based authentication
86
- # - BREAKING CHANGE: Removed subprotocol tunneling support
87
- # - NEW: Exclusive httpOnly cookie-based WebSocket authentication
88
- # - Comprehensive security guide (WEBSOCKET_SECURITY_MULTI_APP_SSO.md)
89
- # - Updated all documentation to reflect cookie-based authentication
90
- # - Enhanced CSRF protection for WebSocket upgrades
91
- # - Added integration tests for cookie-based WebSocket authentication
92
- # - Complete test coverage for WebSocket security scenarios
93
- # - Multi-app SSO compatibility with path="/" cookies
85
+ "0.6.0" # Secure-by-default WebSocket authentication with encrypted session keys
86
+ # - NEW: WebSocket session key generation and management
87
+ # - NEW: Envelope encryption for WebSocket session keys
88
+ # - NEW: Secure-by-default CSRF protection (csrf_required: true)
89
+ # - NEW: WebSocketSessionManager with private collection storage
90
+ # - NEW: Session key endpoint (/auth/websocket-session)
91
+ # - NEW: Session key integration in login flow
92
+ # - ENHANCED: WebSocket authentication with session key support
93
+ # - ENHANCED: CSRF middleware session key validation
94
+ # - ENHANCED: Multi-app WebSocket routing with session keys
95
+ # - BACKWARD COMPATIBLE: Cookie-based authentication fallback
96
+ # - UPDATED: All documentation for secure-by-default approach
97
+ # - COMPREHENSIVE: Unit and integration tests for session keys
94
98
  )
95
99
 
96
100
  __all__ = [
@@ -125,6 +125,18 @@ from .utils import (
125
125
  validate_password_strength_async,
126
126
  )
127
127
 
128
+ # WebSocket sessions
129
+ from .websocket_sessions import (
130
+ WebSocketSessionManager,
131
+ create_websocket_session_endpoint,
132
+ )
133
+
134
+ # WebSocket tickets
135
+ from .websocket_tickets import (
136
+ WebSocketTicketStore,
137
+ create_websocket_ticket_endpoint,
138
+ )
139
+
128
140
  __all__ = [
129
141
  # Base classes
130
142
  "BaseAuthorizationProvider",
@@ -232,4 +244,10 @@ __all__ = [
232
244
  "generate_csrf_token",
233
245
  "validate_csrf_token",
234
246
  "get_csrf_token",
247
+ # WebSocket sessions
248
+ "WebSocketSessionManager",
249
+ "create_websocket_session_endpoint",
250
+ # WebSocket tickets
251
+ "WebSocketTicketStore",
252
+ "create_websocket_ticket_endpoint",
235
253
  ]