Authentication

Authentication is essential for most public APIs and is often the most common point of friction when it comes to onboarding with an API. This API Commons property is often a human-readable affair, and will need to become something that is machine-readable if we are going to scale things.

Also known as: Auth, AuthN, Identity

Example

authentication.yaml
- type: Authentication
  url: https://developers.example.com/authentication

Standards

HTTP Headers

HeaderDirectionSpecDescription
WWW-Authenticate response RFC 9110 §11.6.1 Server challenges the client to authenticate.
Authorization request RFC 9110 §11.6.2 Carries client credentials (Basic, Bearer, etc.).
Proxy-Authenticate response RFC 9110 §11.7.1 Proxy challenges the client to authenticate.
Proxy-Authorization request RFC 9110 §11.7.2 Carries credentials for an HTTP proxy.

Status Codes

Well-Known Paths

Media Types

OpenAPI Expression

Link Relations

Governance Rules

Risk & Compliance

OWASP:

Compliance:

Security: Weak or missing authentication enables enumeration, account takeover, and data exfiltration. Default to short-lived bearer tokens, refresh-token rotation with reuse detection, mTLS for service-to-service, and WebAuthn/FIDO2 for human factors.

Tools

Suggested Metrics

Example Implementations

Related Properties

Tags


All Common Properties