Security defaults that belong in every FastAPI application from day one.
93
90%
Does it follow best practices?
Impact
98%
7.00xAverage score across 5 eval scenarios
Passed
No known issues
A project management tool needs a backend API that lets team members log in, view their tasks, and create new tasks. The API will be internet-facing and the team wants it production-ready from the start.
The API should have three endpoints: one for user authentication, one for listing tasks, and one for creating a new task.
Produce a single Python file named main.py that:
POST /auth/login -- user authenticationGET /tasks -- list tasks for the current userPOST /tasks -- create a new taskRoute handlers may return stub data (no real database or auth logic required). All imports must be present and the file must be syntactically valid Python.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
fastapi-security-basics
verifiers