Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

05 Signup

Signup has two parts: permission, then a passkey. Permission alone creates nothing.

Modes

ModePermission
openAnyone, with rate limits
inviteA single-use invite
externalA verified claim from an external identity provider (09), that matches an invite or a tenant’s rule
appThe application says so, for example after it checked an old password

A tenant’s policy gives the allowed set. The instance can allow fewer. The application chooses who may create invites.

Grant

Permission gives a signup grant: realm, tenant, mode, optional fixed identifier, optional verified claims, expiry. It is part of the ceremony token, and the step that creates the user consumes its source in the same commit. If an invite is cancelled while a signup runs, that signup is refused.

Creating the user

One commit: consume the permission, insert the user, insert the passkey, insert external identities, insert the recovery method if given, write the event, add the application’s own rows.

Invites

  • 256 random bits, stored as a hash, shown once, at most 7 days, single use.
  • An invite can be listed and cancelled. A list never shows the link.
  • An invite gives no rights by itself. The application can attach its own data to it.

Verifying an email address

A link with a single-use token. Opening the link shows a page with a button; only the button’s request uses the token, because mail scanners open links. A verified address is a claim, not a login.