03 Passkeys
WebAuthn Level 3, with the following policy.
Both ceremonies
- User presence and user verification are required.
- The origin matches a configured origin exactly.
crossOrigin: trueand anytopOriginare rejected. - The RP ID hash matches the realm.
- Client data is valid UTF-8 JSON. Authenticator data has no trailing bytes. Extension data is one CBOR map.
- BS without BE is rejected. BE MUST NOT change after registration.
Registration
residentKey: required,userVerification: required,attestation: none.- The public key has exactly the required COSE parameters.
- The client sends
excludeCredentialsfor a user that has passkeys. - A credential ID is unique in the realm, at most 1023 bytes.
- The WebAuthn user handle is the user ID. It is not personal data.
Login
- Discoverable credentials only. The login page asks for no identifier.
- The assertion carries the user handle, and it matches the credential’s owner.
- The signature counter MUST increase if either side is non-zero. Otherwise the assertion is refused and an event is written.
- A login starts a new session. It never continues an old one.
Managing
- Adding and removing a passkey needs a fresh login on the first-party level.
- A user keeps at least one passkey. Removing one ends the sessions that it started.
- A change sends a notice to the user, if the application has a way to.
Client rule
A browser can refuse a second passkey prompt without a new user gesture. A client MUST NOT start two prompts from one gesture.