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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user