|
Имя и аватар из SSO: users.name, синк по webhook и при логине (ТЗ 0.36)
- users.name (display_name из SSO), миграция f1a2b3c4d5e6 - webhook user.profile_updated: name ← profile.display_name (ключа нет — не трогаем), avatar_url, locale; username_changed имя не меняет - /auth/callback: name в сессию и БД (display_name, fallback username) - /auth/me: профиль из БД, не из cookie-сессии — изменения от webhook видны сразу, без повторного логина - фронт: имя в сайдбаре (identity-title), email в meta Co-Authored-By: Claude Code <noreply@anthropic.com> |
|---|
|
|
| backend/alembic/versions/f1a2b3c4d5e6_user_name.py 0 → 100644 |
|---|
| backend/app/auth/routes.py |
|---|
| backend/app/auth/webhooks.py |
|---|
| backend/app/models.py |
|---|
| backend/app/services/users.py |
|---|
| backend/tests/test_auth.py |
|---|
| backend/tests/test_auth_webhooks.py |
|---|
| backend/tests/test_multiuser.py |
|---|
| docs/TZ.md |
|---|
| frontend/src/App.vue |
|---|
| frontend/src/types.ts |
|---|