Deal with authentication requirements