feat: add password login and bearer sessions
- Argon2id password hashes, KDF in a thread with its own limit - POST /auth/sessions with Basic, DELETE /auth/sessions/current - Bearer sessions in PostgreSQL, X-User-Id ignored - migration drops lab 1 data without passwords - student-tests on tokens, sessions spec and synced specs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,8 @@ dependencies = [
|
||||
"asyncpg>=0.31.0,<0.32",
|
||||
# в основной группе: сервис миграций работает в runtime-образе (--no-dev)
|
||||
"alembic>=1.20.0,<2",
|
||||
# Argon2id для паролей: bcrypt режет пароль на 72 байтах, lab7 — Argon2id
|
||||
"argon2-cffi>=25.1.0,<26",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
|
||||
Reference in New Issue
Block a user