authentication
Installation
SKILL.md
Authentication
Use this skill when securing endpoints, adding login/session flows, or enforcing permissions.
Workflow
- Choose an auth mechanism (session vs JWT/bearer) based on client architecture.
- Configure auth middleware/backend.
- Protect routes with guards and scope checks.
- Keep unauthenticated and forbidden behaviors explicit and consistent.
Guard Pattern
from litestar import get
from litestar.connection import ASGIConnection