WebAuthn and passkey debugging guides
From the byte layout to RP ID mismatches and attestation formats, in the order you meet them.
- The WebAuthn registration and authentication ceremoniesWhat the browser, server and authenticator each build and verify during create and get, field by field, and where implementations usually go wrong.
- The authenticatorData byte layout and flag bitsOffsets for the 37-byte header, AAGUID, credential ID, COSE key and extensions, with a worked hex example and the meaning of every flag.
- Reading CBOR and COSE public keys: ES256, RS256, Ed25519How the attestationObject CBOR map and the COSE key map (kty, alg, crv, x, y, n, e) are laid out, with byte-level examples and reconstruction steps.
- RP ID and origin validation: why passkeys bind to the wrong siteHow rpIdHash is computed, the protocol, host and port rules for origins, and the subdomain and localhost exceptions, with real mismatch cases.
- Attestation formats and the BE/BS flags: none, packed, tpm, appleHow fmt changes attStmt, what each format proves, and how the BE and BS flags identify synced passkeys and should change server validation.