CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/fastapi-security-basics

Security defaults that belong in every FastAPI application from day one.

93

7.00x
Quality

90%

Does it follow best practices?

Impact

98%

7.00x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-5/

Task Tracker API with Login

Problem/Feature Description

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.

Output Specification

Produce a single Python file named main.py that:

  • Defines a FastAPI application with three routes:
    • POST /auth/login -- user authentication
    • GET /tasks -- list tasks for the current user
    • POST /tasks -- create a new task

Route 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

tile.json