Improved auth API with a simpler SecurityContextFactory