Q32: What is WebAuthn / Passkeys and how does passwordless authentication work?

Difficulty:MediumTopic:Modern Auth

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:

  1. Registration: Device generates a unique public/private key pair bound to the origin domain. The public key is registered with the server.
  2. 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.