Scaffolding for authentication