Research Demonstration

A Comparative Security Analysis of Authentication Architectures

This study examines three common patterns for handling authentication tokens in web applications — localStorage, HttpOnly cookies, and a Backend-for-Frontend proxy — evaluating each against key security criteria including token exposure, XSS susceptibility, and API surface visibility. The goal is to provide a structured, empirical comparison to inform architecture decisions in security-sensitive contexts.