Add session management API, cleanup service, and session-specific tests
- Introduced session management endpoints to list, revoke, and cleanup sessions per user. - Added cron-based job for periodic cleanup of expired sessions. - Implemented `CRUDSession` for session-specific database operations. - Integrated session cleanup startup and shutdown events in the application lifecycle. - Enhanced CORS configuration to include `X-Device-Id` for session tracking. - Added comprehensive integration tests for multi-device login, per-device logout, session listing, and cleanup logic.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
[pytest]
|
||||
env =
|
||||
IS_TEST=True
|
||||
testpaths = tests
|
||||
python_files = test_*.py
|
||||
addopts = --disable-warnings
|
||||
|
||||
Reference in New Issue
Block a user