feat(auth): harden session management and security
- Implement server-side session revocation on logout - Add IP extraction utility and admin setup error handling - Improve error codes and response consistency for auth endpoints - Refine landing page redirect logic to handle transient DB outages - Update deployment documentation and configuration defaults
This commit is contained in:
1 parent
935f12a1e9
commit
89e4d68690
81 files changed
+11530
-6916
No files matched your search
@@ -20,6 +20,15 @@ def _ensure_canonical_datastack_on_path() -> None:
|
||||
if repo_canonical.is_dir() and str(repo_canonical) not in sys.path:
|
||||
sys.path.insert(0, str(repo_canonical))
|
||||
|
||||
try:
|
||||
import datastack # noqa: F401
|
||||
except ImportError as exc:
|
||||
raise ImportError(
|
||||
"datastack-sdk requires the canonical 'datastack>=2.2.0' package. "
|
||||
"Install it via `pip install ./sdk/python/datastack` or install "
|
||||
"`datastack>=2.2.0` from your package index."
|
||||
) from exc
|
||||
|
||||
|
||||
_ensure_canonical_datastack_on_path()
|
||||
|
||||
|
||||
+5
-3
@@ -26,9 +26,10 @@ setup(
|
||||
license="MIT",
|
||||
packages=find_packages(),
|
||||
install_requires=[
|
||||
"python-socketio[client]>=5.11.0",
|
||||
"requests>=2.31.0",
|
||||
"websocket-client>=1.7.0",
|
||||
"datastack>=2.2.0",
|
||||
"python-socketio[client]>=5.8.0",
|
||||
"requests>=2.28.0",
|
||||
"websocket-client>=1.5.0",
|
||||
],
|
||||
classifiers=[
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
@@ -44,6 +45,7 @@ setup(
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user