Improved authentication model with response headers.