 Congress devised the oath in July 1862 for all federal employees, lawyers, and federal elected officials.It was applied to Southern voters in the Wade–Davis Bill of 1864, which President Abraham Lincoln vetoed.President Andrew Johnson also opposed it.