> The officials were not authorized to speak publicly and spoke to the AP on condition of anonymity.
Anonymous to readers != anonymous to the journalist. The journalist can verify the source, and also guard his or her anonymity for their safety. This is common practice in journalism.