Tagged articles
Token Revocation
10 articles · Page 1 of 1
This article dissects three real-world authentication failures in Spring Cloud Gateway, explaining why gateway-only auth is insufficient, how to reconcile stateless JWT with immediate revocation, and why downstream services must verify internal signatures rather than trust headers, with production-ready code and configuration patterns.
JWTMicroservices SecurityOAuth2
0 likes · 43 min read

This article details a Java implementation for one-click account freezing that uses a security version counter to instantly invalidate all access tokens, refresh tokens, sessions, and trusted devices across multiple clients without maintaining token blacklists, covering distributed caching, audit logging, and recovery flows.
Account FreezeAuthenticationDistributed Caching
0 likes · 23 min read

A comprehensive 12-question guide covering authentication vs authorization fundamentals, stateful vs stateless session trade-offs, five architectural selection dimensions, cost modeling across team sizes, migration strategies from custom sessions to unified identity platforms, JWT token revocation patterns, Keycloak's scope limitations for fine-grained permissions, protocol mixing anti-patterns, and layered auth architecture principles.
Architecture SelectionAuthNAuthZ
0 likes · 26 min read

This chapter from 'Architecture Fundamentals' covers user security across the account lifecycle: login kickout mechanisms, password policies and storage, recovery and registration flows, RBAC with data permissions, and token/JWT trade-offs, emphasizing revocation and recovery as critical security capabilities.
AuthenticationJWTRBAC
0 likes · 10 min read

This article details how to design a unified authentication center that can handle billions of OAuth 2.0 requests, covering layered architecture, token issuance and revocation, refresh‑token rotation, gateway validation, key management, and practical pitfalls to ensure secure, high‑performance identity traffic in production.
AuthenticationOAuth 2.0Refresh Token Rotation
0 likes · 46 min read

The article explains JWT fundamentals, why pure stateless tokens cannot be revoked, compares blacklist and whitelist Redis strategies, discusses token renewal with double‑token design, and shows how to articulate the right answer in an interview.
BlacklistJWTRedis
0 likes · 13 min read

This article explains how to build a JWT blacklist in Spring Boot 3, covering token fingerprinting, storage options using Caffeine or Redis, request interception, configuration, and sample login/logout endpoints to revoke tokens before they expire.
BlacklistCaffeineJWT
0 likes · 12 min read

This article critically examines JWT authentication, comparing it with Session and traditional token approaches, detailing its stateless advantage, CSRF implications, token revocation challenges, refresh strategies, size overhead, and concrete scenarios where JWT fits or fails.
AuthenticationBackend SecurityCSRF
0 likes · 15 min read

This article explains what JSON Web Tokens are, outlines their typical usage flow, and critically examines their drawbacks such as size overhead, redundant signatures, revocation challenges, stale data, lack of encryption, and broader security concerns.
AuthenticationJWTSecurity
0 likes · 6 min read

The article examines JWT's benefits such as statelessness and CSRF protection, then details its drawbacks—including revocation difficulty, XSS risk, and token size—and presents practical solutions like blacklists, short lifetimes, and refresh‑token strategies, helping readers decide when to use JWT versus session‑based authentication.
AuthenticationCSRFJWT
0 likes · 14 min read
