Expand description
Passkeys in the apps (P3-19), each server through a relying party of
its own under spoolframe.app (PX-14): ServerId::rp_id.
A platform’s passkey API works only for a domain the app is associated
with when it is built; a self-hosted server’s own domain is not known
then. So the apps make and use their passkeys for
<server id>.spoolframe.app, which one association file at
spoolframe.app covers, with a wildcard. Sign-in runs between the app
and the server over this protocol; the server never contacts
spoolframe.app.
Every server once shared spoolframe.app itself (LEGACY_APP_RP_ID).
A security key with passkeys for two servers then offered both to a
sign-in that listed none, the platform took one, and the other server
refused it. With a relying party per server, a key offers only that
server’s. Passkeys made for the shared one sign in nowhere now.
Every server keeps its own passkeys, so a passkey made on one is refused by another. Each user has a random user handle per server, so one server’s says nothing about the same person on another.
The relying party comes from the server id the server names in
ServerInfo, and a server may name another’s. So the challenge still
names the server by its key (PX-09, finding 2): a server sends a random
nonce, never a challenge, and the challenge is app_passkey_challenge
of the server’s endpoint id and that nonce. The server computes it with
its own id; the client with the id it pinned and dialled, never one the
server names. A server that claims another’s server id and hands on
its nonce, to relay a sign-in, has the app sign a challenge for itself,
which the other refuses.
The bytes are WebAuthn’s own, as the platform API gives and takes them; the app maps them to and from it and changes nothing.
Structs§
- Finish
Passkey Registration - A passkey made for a
PasskeyCreation, to keep (FinishPasskeyRegistration). - Finish
Passkey Sign In - A passkey’s answer to a
PasskeyRequest(FinishPasskeySignIn). - Passkey
Creation - What making a passkey needs: the platform’s options. User verification
is required. Not on the wire: the client makes it from a
PasskeyRegistrationBegun. - Passkey
Info - One of the session user’s passkeys (
ListPasskeys), the web UI’s as well as the apps’: the user sees every way they sign in, and the web UI’sme.passkeyslists the same ones. - Passkey
Registration Begun - A server’s answer to
BeginPasskeyRegistration, on the wire: a nonce, not a challenge.PasskeyRegistrationBegun::for_servermakes thePasskeyCreationthe platform is given. - Passkey
Request - What signing in with a passkey needs: the platform’s options. Not on
the wire: the client makes it from a
PasskeySignInBegun. - Passkey
Sign InBegun - A server’s answer to
BeginPasskeySignInandBeginConfirmPasskey, on the wire: a nonce, not a challenge.PasskeySignInBegun::for_servermakes thePasskeyRequestthe platform is given.
Constants§
- LEGACY_
APP_ RP_ ID - The relying party every server’s app passkeys were made for before each server had its own (PX-14). A passkey stored with it signs in nowhere now: its user adds it again.
- NONCE_
LEN - Bytes of a nonce a server sends.
Functions§
- app_
passkey_ challenge - The WebAuthn challenge for an app passkey ceremony with the server
whose endpoint id is
server, from thenonceit sent: SHA-256 ofCHALLENGE_TAG, the 32 bytes of the id, then the nonce. The tag and the id are of fixed length, so nothing else hashes the same. - is_
app_ rp_ id - Whether a passkey made for
rp_idwas made in an app: for a server’s relying party (ServerId::rp_id), or the one all shared before.