What Is WebAuthn?

Blog-Post-Author

Vincent

Created: November 14, 2023

Updated: September 10, 2024


What Is WebAuthn?#

WebAuthn is a web standard introduced by the World Wide Web Consortium (W3C) aimed at simplifying and standardizing strong user authentication online. It offers a simplified and secure way for users to log in to websites and applications without the need for passwords, instead using biometrics or hardware security keys.

Slack Icon

Become part of our Passkeys Community for updates and support.

Join

Key Takeaways#

  • WebAuthn is a web standard for passwordless user authentication.
  • It supports a variety of authenticators like biometric readers and hardware security keys (e.g. YubiKeys).
  • WebAuthn enhances online security, making it resistant to phishing attacks.

What is WebAuthn? - WebAuthn is a web standard introduced by the World Wide Web Consortium (W3C) aimed at simplifying and standardizing strong user authentication online.

How WebAuthn works:#

  • User Registration: The user registers on a web service, and during the registration, they are provided with multiple authentication options supported by WebAuthn. They can choose from external authenticators like hardware security keys (e.g. YubiKeys) or built-in platform authenticators like biometrics (e.g. Face ID, Touch ID, Windows Hello).
  • User Authentication: After registration, users can authenticate to the web service using their chosen authenticator. This authentication process is simple and secure, providing a robust defense against phishing and other online threats.
Substack Icon

Subscribe to our Passkeys Substack for the latest news, insights and strategies.

Subscribe

Origin and Development:#

WebAuthn was developed under the W3C with significant contributions from companies like Yubico, Microsoft, and Google. It is a part of the FIDO2 project, and its development aimed at moving beyond passwords to offer stronger and more user-friendly authentication mechanisms.


WebAuthn FAQs#

WebAuthn vs. Passkeys? What is the Difference?#

While WebAuthn lays down the framework for utilizing private keys for authentication, passkeys are a specific implementation of this framework, tailored for easy user interaction and broad application.

How does WebAuthn enhance security?#

WebAuthn uses public-key cryptography to provide strong authentication, making it resistant to phishing and other common online attacks.

What are the types of authenticators supported by WebAuthn?#

WebAuthn supports a variety of authenticators including hardware security keys (e.g. YubiKeys), fingerprint readers, and other biometric or platform built-in authenticators.

Ben Gould Testimonial

Ben Gould

Head of Engineering

I’ve built hundreds of integrations in my time, including quite a few with identity providers and I’ve never been so impressed with a developer experience as I have been with Corbado.

3,000+ devs trust Corbado & make the Internet safer with passkeys. Got questions? We’ve written 150+ blog posts on passkeys.

Join Passkeys Community

How does WebAuthn work with FIDO and U2F?#

WebAuthn is a core component of the FIDO2 project and is backward compatible with FIDO Universal 2nd Factor (U2F), providing a standardized interface for user authentication.

Can WebAuthn work without a roaming hardware authenticator?#

Yes, WebAuthn supports software or platform authenticators as well, offering flexibility in the choice of authenticator used for secure login.

WebAuthn vs OAuth? What's the difference?#

WebAuthn is a web standard for passwordless authentication using hardware security tokens (e.g. YubiKeys) or biometrics(e.g. Face ID, Touch ID, Windows Hello), whereas OAuth is an authorization framework that allows third-party applications to access services on behalf ofusers. While WebAuthn is focused on user authentication, OAuth handles authorization and access delegation.

WebAuthn vs U2F? What's the difference?#

WebAuthn and U2F (Universal Second Factor) bothrelate to user authentication, but WebAuthn supports both single-factor andmulti-factor authentication using various methods like biometrics (e.g. FaceID, Touch ID, Windows Hello), while U2F primarily supports two-factor authentication through physical hardware security tokens like USB devices (e.g. YubiKeys).

WebAuthn vs OTP? What's the difference?#

WebAuthn facilitates passwordless authentication using public-key cryptography, while OTP (One-Time Password or Passcode) is a time-based code used alongside passwords for two-factor authentication. Unlike OTP, WebAuthn offers a more secure, phishing-resistant method of authentication without needing additional code input.

WebAuthn vs FIDO? What's the difference?#

WebAuthn is a component of the broader FIDO2 standard aimed at passwordless authentication. While FIDO2 encompasses both web (WebAuthn) and local device authentication (client-to-authenticator protocol; CTAP), WebAuthn specifically pertains to web-based authentication using public-key cryptography.

What’s a WebAuthn example?#

Various websites and apps have WebAuthn already implemented in their authentication flows. To see an updated list of the services, please have a look here.

What’s a WebAuthn backend?#

The WebAuthn backend is the server-side implementation that processes authentication requests, verifies credentials, and manages public key and user data. It is responsible for securely storing the public keys associated with registered users and verifying the signatures generated by the authenticator during the login process.

What’s a WebAuthn demo?#

To see an up-to-date WebAuthn demo, you can check out this demo page.

Does WebAuthn use Yubikeys?#

WebAuthn can be utilized with YubiKeys to enable passwordless login or two-factor authentication on websites, enhancing security. The YubiKey acts as an external, roaming authenticator that can generate and store cryptographic keys, allowing users to authenticate to services securely.

Demo Icon

Want to try passkeys yourself? Check our Passkeys Demo.

Try Passkeys

What is the WebAuthn API?#

WebAuthn API, also called Web Authentication API, is a standard interface allowing developers to integrate passwordless authentication using public key cryptography in their applications. This API enables the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.

How does WebAuthn with a QR Code work?#

WebAuthn QR codes could be used to initiate a WebAuthn authentication process on a different device. This allows to use the credentials stored on one device to be used on another device. The first device scans a QR code being displayed on the second device, so that the first device’s credentials can be used. To further strengthens security and prevent phishing, the proximity of the two devices is verified via Bluetooth. The passkey from the first device is not stored on the second device.

What is WebAuthn HMAC-Secret?#

HMAC-Secret is an extension in WebAuthn allowing shared secret generation using the authenticator, enhancing privacy and security. It provides a way to derive shared secrets from the authenticator's key, which can be used for additional purposes like encryption or integrity checking.

How does WebAuthn work with Hardware Security Keys?#

WebAuthn can work with hardware security keys like YubiKeys to provide a secure method of authentication by verifying the user's possession of the hardware security key. The hardware security keys generates cryptographic credentials that are sent to the server for verification, ensuring a secure and passwordless authentication experience.

What’s a WebAuthn authenticator?#

A WebAuthn authenticator is a device or software that generates and manages cryptographic credentials, like biometric scannersor hardware security keys. Authenticators can be built into the user's device(platform authenticators) or be removable and usable across many devices (roaming authenticators).

What is WebAuthn attestation?#

WebAuthn attestation is a process where the authenticator provides a certificate to the server during registration, helping verify the authenticity of the authenticator. This certificate, signed by the authenticator's manufacturer, helps the server trust the authenticity and integrity of the authenticator.

What is WebAuthn Level 3?#

WebAuthn Level 3 is the third revision of the WebAuthn specification documents which is currently work in progress. See the latest version here.

Debugger Icon

Want to experiment with passkey flows? Try our Passkeys Debugger.

Try for Free

How does WebAuthn work with multiple devices?#

WebAuthn allows for the usage of multiple devices by having separate registrations for each device (and often browser), enabling users to use various authenticators. This facilitates flexibility and ensures users can authenticate across different devices and platforms seamlessly. Moreover, passkeys make use of their synchronization features across cloud accounts or password managers, which is also a kind of using WebAuhn credentials across multiple devices.

What is WebAuthn User Verification?#

User Verification in WebAuthn is the process of verifying the user's identity, like using biometrics (e.g. Face ID, Touch ID, WindowsHello) or a PIN, before generating or using a credential. This step ensures that the individual initiating the authentication process is the legitimate owner of the authenticator, enhancing security.

Share this article


LinkedInTwitterFacebook

Enjoyed this read?

🤝 Join our Passkeys Community

Share passkeys implementation tips and get support to free the world from passwords.

🚀 Subscribe to Substack

Get the latest news, strategies, and insights about passkeys sent straight to your inbox.


We provide UI components, SDKs and guides to help you add passkeys to your app in <1 hour

Start for free