Draft authentication factory.