Sign-in that holds
Three locks on every account. A passkey opens only the real site. Wrong guesses lock the account, the owner’s first. A stolen session stops working on any other network.
A key for one door
Clients sign in with a face, a fingerprint, or a screen lock. The passkey works only on the real address, so a look-alike site gets nothing at all.
WebAuthn passkeys. The browser writes the page’s origin into the data the passkey signs, and each passkey is scoped to the site’s domain, so a credential for the real site can’t be used on another. Challenges are single-use and expire after 5 minutes. If a passkey’s signature counter stalls, a copied key is suspected and the client is signed out everywhere.
- passwords to steal
- 0
- a sign-in challenge lives
- 5 min
A lock that trips
Wrong guesses lock the account. The owner’s account can do the most harm, so it locks first: 3 tries in an hour. Everyone else gets 10 tries in 15 minutes.
Failures are counted per identity in a rolling window: 3 per 60 minutes for the owner, 10 per 15 minutes for everyone else, behind a per-address rate limiter. An unknown email gets the same answer as a wrong password, so nobody can test which accounts exist.
- tries before the owner locks
- 3
- for everyone else, per 15 minutes
- 10
A session that won’t travel
Signing in starts a session tied to the network and browser it began on. Copied to another computer, it stops working. If anything looks wrong, every session on the account can be ended at once.
Session tokens carry an HMAC of the network (the /24 for IPv4, the /48 for IPv6) and the User-Agent, checked on every request. Client and owner sessions are signed with different secrets. A version number on the account revokes every session when it changes. Cookies use the __Host- prefix with HttpOnly, Secure, and SameSite=Strict.
- network and browser per session
- 1
The detail
Switch to Technical for what an IT team asks.
- A lost phone
- A one-time code can only add a new passkey. It can’t sign anyone in, and it lasts 10 minutes.Recovery and invite codes register a credential and never create a session. Recovery codes expire after 10 minutes, invites after 7 days. Requests are limited to 6 per 15 minutes per address, and the limit answers with the same body as success.
- The owner’s own door
- The owner signs in with a passkey only. There’s no password to steal and no email reset to trick. A second passkey, kept somewhere else, is the way back in.Operator accounts have no password and no emailed recovery code. Recovery is a second registered passkey kept physically elsewhere. An unknown email answers with the same shape and timing as a known one.
- Staff passwords
- Where staff use a password, only a slow, salted hash is kept, never the password itself.PBKDF2 with SHA-256 at 100,000 iterations and a random salt per password.
- Every attempt, written down
- Each try is recorded: when, for which account, and how it ended. A locked owner account shows in the activity log at once.Attempts are stored with the identifier, a keyed hash of the address (never the address itself), and the outcome: ok, bad_password, unknown_user, or locked. An owner lockout writes an auth.owner.locked event to the audit log.
- Threat model
- Written before the code.Threats were listed and answered before the first line was written, from the curious client to the targeted attacker.
Where it runs
Atlas, a photography practice run by Afterglow’s owner, for client passkeys and sessions, and Blossom Magazine’s studio, for staff sign-in and lockouts. Atlas is a separate business, not part of Afterglow Software, and not a client.
Revision B, November 25, 2026. Replaces Passkey sign-in, Revision A.