Move HTTP auth to object