auth oauth2 oidc webauthn passkey security

Modern Authentication Protocols: OAuth 2.0, OpenID Connect, and WebAuthn

Understand how modern login works. Learn about OAuth 2.0 flows, OIDC identity layers, and the passwordless future with WebAuthn and Passkeys.

2026-04-11

Modern Authentication Protocols: From OAuth 2.0 to Passkeys

In the digital age, "Who are you?" and "What are you allowed to do?" are two of the most critical questions a system must answer. Authentication (AuthN) and Authorization (AuthZ) are the pillars of security. This guide explores the modern protocols that manage these processes.

1. Federated Identity and Authorization

OAuth 2.0 (Authorization)

OAuth 2.0 is the industry-standard protocol for authorization. It allows a website or application to access resources hosted by other web services on behalf of a user (e.g., "Log in with Google").

  • Bearer Token: The most common type of access token used in OAuth 2.0. If you have the token, you have access.
  • API Key: A simpler form of authentication, often used for machine-to-machine communication.

OpenID Connect (OIDC)

Built on top of OAuth 2.0, OIDC adds an identity layer. While OAuth is about access, OIDC is about identity. It allows clients to verify the identity of the end-user based on the authentication performed by an Authorization Server.

SAML (Security Assertion Markup Language)

An XML-based standard used primarily in enterprise environments for Single Sign-On (SSO). It allows identity providers (IdP) to pass authorization credentials to service providers (SP).


2. Enterprise and Legacy Directory Services

LDAP (Lightweight Directory Access Protocol)

A mature protocol used to access and maintain distributed directory information services. It is the backbone of many corporate employee databases.

Kerberos

A network authentication protocol designed to provide strong authentication for client/server applications by using secret-key cryptography. It is the default authentication method in Windows Active Directory.


3. Multi-Factor Authentication (MFA)

OTP (One-Time Password)

  • HOTP: HMAC-based One-Time Password (event-based).
  • TOTP: Time-based One-Time Password (used by apps like Google Authenticator).

4. The Passwordless Future: FIDO and WebAuthn

FIDO2 & WebAuthn

The FIDO Alliance created these standards to replace passwords with secure, public-key cryptography. WebAuthn is the browser API that enables this.

Passkeys

Passkeys are a specific implementation of FIDO standards that allow users to sign in to websites and apps using the same biometrics or PIN they use to unlock their devices (FaceID, Fingerprint). They are synced across devices via the cloud (Apple iCloud, Google Password Manager).

U2F (Universal 2nd Factor)

An older FIDO standard, typically requiring a physical security key (like a YubiKey) as a second factor.


Comparison Summary

Protocol Type Main Use Case Format
OAuth 2.0 Authorization API Access, Third-party integration JSON / JWT
OIDC Identity "Log in with..." buttons JWT (ID Token)
SAML Identity/SSO Enterprise Corporate Login XML
WebAuthn AuthN Passwordless / Passkeys Public Key Crypto
LDAP Directory Corporate User Management Binary

Conclusion

The shift from passwords to Passkeys and OIDC is making the internet more secure and user-friendly. While OAuth 2.0 remains the king of API authorization, the future of user login is undoubtedly hardware-backed and passwordless. Understanding these protocols is essential for any developer building secure applications today.