Scott Tompkins

Identity Without Accounts

A food pantry check-in system that recognizes a returning household with no sign-in, no password and no secret. The check-in code is the neighbor's answers to the form, carried in a QR code.

QR · PWA · Postgres

Anyone who knows a household’s name and town can produce that household’s check-in code and check in as them. I designed it that way, and this page is the case for it, taken one objection at a time.

FoodForms checks neighbors in at food pantries. The design is short to state. A neighbor’s check-in code is their answers to the form, carried in a QR code. Identity is name and town, which the kiosk matches against its own roster. Nothing in the code is secret, so there is nothing to issue, reissue, pair or revoke.

Pantry phone sitea page, not a serviceAsks the questionsKeeps the answers in the phone's own storageDraws the check-in codeCheck-in codeQR link, payload after the #Name, town, household sizePhone if given, languageYearly declaration and wording versionKioskoffline, against its own rosterMatches on normalized name and townMatchHousehold is checked inNo matchHousehold is created from the codeThen checked in
A neighbor's phone keeps their answers and draws them as a code. The kiosk reads it offline and matches on name and town.
Diagram as text
  • Pantry phone site connects to Check-in code.
  • Check-in code connects to Kiosk.
  • Kiosk connects to Match.
  • Kiosk connects to No match.

The code is a link to the pantry’s phone site. The part after the # carries a small versioned payload: name, town, household size, phone if given, and language. Once the yearly self-declaration is confirmed, it also carries when that happened and against which version of the wording. Browsers never send that part of a link to a server.

The phone site is a page, not a service. It asks the questions, keeps the answers in the phone’s own storage and draws the code. The kiosk matches a scanned code offline, on a normalized key of name and town. A match checks the household in. No match creates the household from the code and checks it in.

“Recognizing a returning person is what accounts are for”

An account means sign-in, credentials and recovery. Before choosing one I asked what system this replaces.

It replaces a volunteer with a spreadsheet, matching a self-declared paper form by name and town, by eye. The self-declaration is an honor system, and everyone who reads the reports knows it. An account would protect nothing the program itself protects. It would also ask the most of the neighbors least able to give it: an email address, a password, a phone that never gets lost. Many neighbors have no email address. Some have a prepaid phone and some have none.

The other usual answers were closed too. The program forbids demanding identification. Biometrics were ruled out from the first day, because of the legal exposure and because they would deter the people the program exists for. The kiosk is a public tablet, so it must never show a list of other people’s names.

Staff do sign in. Staff can see a whole pantry’s households, and that is worth protecting.

“Then anyone can check in as someone else”

Yes. Anyone who knows a name and town can make that household’s code. That was already true of finding someone by name in the spreadsheet. What they would gain is food.

“The code gives away the household’s details”

It does, to anyone who decodes it. A photograph of the code is a photograph of a filled-in form. The phone shows the code only when asked. The kiosk shows it only on a tap, and for a short time.

“Two families with the same name in the same town”

They become one row. The spreadsheet does the same, and staff merge or split households as they always have.

None of these three is worse than the paper process, and all three are written into the project’s decision record. The record itself holds things paper does not: it comes from the neighbor’s own device, with a timestamp and the exact version of the wording they confirmed.

“What if they lose the phone, or there is no signal”

A new phone means typing the same five facts again. A neighbor registers from any phone, at home or in line, with no email address, and needs no signal once the page has loaded. There are no neighbor credentials to leak, and volunteers have no account recovery to support.

The kiosk has to read a code when the pantry’s internet is down, which is why matching happens on the tablet. Offline Is the Default, Not a Mode covers that side.

“A code that full of facts must be hard to scan”

This objection is about physics. A QR code’s squares get smaller as its text gets longer. Written as base64-encoded JSON, the facts make a code 61 to 65 squares across, and the tablet camera and the ticket printer’s small scanner can read that only from close up.

A compact encoding of the same facts takes a long name’s link from 269 characters to 124, and the code from 65 squares to 45.

JSON, base64269 chars
compact encoding124 chars
The compact encoding carries the same facts in less than half the characters.

Tablets read codes offline, and a build that does not know an encoding would refuse it. So every reader learned both forms before any writer produced the compact one, and writers switched only after every enrolled tablet had been seen running the new build.

The second answer is to split codes by where they come from. What a neighbor’s phone holds stays the facts. The phone has nothing else, and a pantry that has never seen the neighbor registers them from it. What the pantry prints, on tickets and stickers, is only a household number: 19 characters and 21 squares across, the smallest QR code there is. It reads from farther away, and it says nothing about the neighbor if the ticket is dropped in the parking lot.

65 squaresJSON, base64
45 squarescompact encoding
21 squaresprinted: household number
Fewer squares across the same printed size means bigger squares, which the tablet camera and ticket printer read more reliably.

Collecting Only What the Rule Names applies the same reasoning to what data is collected, and The Volunteer with a Spreadsheet is about measuring a design against the process it replaces.