Q32: What is WebAuthn / Passkeys and how does passwordless authentication work?
WebAuthn (W3C standard component of FIDO2) enables passwordless authentication leveraging public-key cryptography built into modern operating systems and hardware security modules (TouchID, FaceID, YubiKeys).
Authentication Flow:
- Registration: Device generates a unique public/private key pair bound to the origin domain. The public key is registered with the server.
- Authentication: Server sends a cryptographic challenge string. The client prompts biometrics to unlock the private key, signs the challenge, and returns the signature to the server for verification.
Key Takeaways
Passkeys replace passwords with origin-bound asymmetric key pairs unlocked via biometrics.
Inherently immune to credential stuffing, phishing, and server database password leaks.