Stop Using JWTs

Hacker News Top News

Summary

An opinion piece arguing against the use of JSON Web Tokens (JWTs) for authentication and session management, citing security and design concerns.

No content available
Original Article

Similar Articles

Preventing token theft

Lobsters Hottest

The article discusses the problem of authentication token theft by infostealer malware and explores a 15-year-old proposal by Dirk Balfanz to use self-signed client certificates for TLS mutual authentication to bind tokens to a specific device, preventing token reuse even if stolen.

Why We Don't Trust the Database with Authentication

Hacker News Top

This article explains the dangers of trusting the database as the sole source of truth for API authentication, using a SQL injection scenario, and presents Sturdy Statistics' approach of using HMAC-SHA512 with a cryptographic pepper for defense in depth.

CLI Authentication, the Right Way

Lobsters Hottest

This article critiques the common OAuth loopback authentication pattern used by many CLI tools, which fails on headless machines, and advocates for alternative methods like device code flow that have been standard since 2019.