Границы авторизации

Сессии и доступ к серверным операциям.

Backendauthsessionsauthorization

Когда использовать

Add identity and object-level authorization to server applications.

Решения для реализации

  1. Reuse a proven identity provider; avoid custom password crypto.
  2. Verify identity on the server and ownership on each object operation.
  3. Use secure HttpOnly SameSite cookies with CSRF protection suited to the auth model.
  4. Keep secrets out of browser bundles, skill archives and logs.

Как проверить результат

  • Changing an ID cannot read another user’s record.
  • Unauthenticated mutations are rejected.
  • Session expiry has a recovery flow.

Файлы

SKILL.mdreferences/backend-boundaries.md
WEBCRAFT © 2026Оригинальные исходники и интерактивные примерыMIT License