Skip to content

Standards & References

Core specifications

Standard Title Covers
RFC 7617 The 'Basic' HTTP Authentication Scheme Basic Auth
RFC 6750 OAuth 2.0 Bearer Token Usage Authorization: Bearer
RFC 7519 JSON Web Token (JWT) Token format & claims
RFC 7515 JSON Web Signature (JWS) JWT signing
RFC 6749 OAuth 2.0 Authorization Framework Grant types
RFC 7636 PKCE Public-client code flow
RFC 8628 Device Authorization Grant TVs/CLIs
RFC 9700 OAuth 2.0 Security Best Current Practice Modern OAuth hardening — read this
OpenID Connect Core Identity layer on OAuth 2.0 id_token, userinfo

Authorization specifications

Standard Title Covers
RFC 8693 OAuth 2.0 Token Exchange Delegation, act claim, downscoping
RFC 8707 Resource Indicators for OAuth 2.0 Audience-restricted tokens
RFC 9068 JWT Profile for OAuth 2.0 Access Tokens scope, roles, groups claims
RFC 9396 OAuth 2.0 Rich Authorization Requests Fine-grained authorization_details
NIST SP 800-162 Guide to Attribute Based Access Control ABAC concepts
XACML 3.0 eXtensible Access Control Markup Language PEP/PDP/PIP/PAP architecture
Zanzibar (USENIX ATC '19) Google's Consistent, Global Authorization System ReBAC

Security guidance

Useful tooling

Tool Purpose
hashcat / jwt_tool Test HMAC secret strength & JWT attacks (authorized testing only)
gitleaks, trufflehog Scan repos for committed credentials
cURL, httpie Wire-level auth testing
Keycloak Self-hosted OAuth/OIDC provider for development
oauth2-proxy Put OAuth in front of apps that lack auth
Open Policy Agent, Cedar Policy engines (ABAC/RBAC)
OpenFGA, SpiceDB Zanzibar-style relationship-based authorization
Burp Suite Autorize, OWASP ZAP Replay traffic with low-privilege tokens to find BOLA/BFLA (authorized testing only)

Library cheat sheet

Language JWT OAuth/OIDC client Sessions
Python PyJWT, python-jose (unmaintained — prefer PyJWT) Authlib, requests-oauthlib Flask-Session, Django sessions
Java java-jwt, Nimbus JOSE+JWT Spring Security OAuth2 Spring Session, HttpSession
Node jsonwebtoken, jose (preferred) openid-client, Passport express-session
Go golang-jwt, lestrrat-go/jwx golang.org/x/oauth2 gorilla/sessions