Lab: Lock the HTTP notes server with tokens
81 min read·13 Oct 2026
Module 7 · Lab · About 75 minutes · Needs: lessons 1 to 3 of this module and the Module 5 lab; Module 6 helps; no model key is used
What you are building
Monday 28 September 2026, week 4. The lessons built authorization in scratch folders. This lab puts one version of each piece into your notes-assistant repository: notes_assistant/auth.py, one stand-in identity provider, an upgrade to notes_assistant/server.py that keeps every earlier test passing, a script that starts the server as a deployment would and signs in as Nare and Priya, and keyless tests.
The running example is course-guide/03's rule, end to end: Priya and Tomas may read (notes:read), only Nare may also write (notes:write), and a stranger gets nothing.