Updated 8:42 p.m. ET, 1/8/2014
Washington (CNN) - Former Defense Secretary Robert Gates' criticism of his former boss President Barack Obama on Afghanistan doesn't align with the commander-in-chief's views, the White House said Wednesday.
In his memoir, which arrived at the White House on Tuesday evening, Gates states Obama "doesn't believe in his own strategy" in Afghanistan.
"For him, it's all about getting out," the former defense chief writes.
Jay Carney, the White House press secretary, argued Obama had helped "refocus" troops and commanders on the United States' mission in the country.
"The President devised the mission and has great faith in the troops who carry out the mission and in the mission itself, that it's the right mission to pursue in Afghanistan," Carney said in response to a question from CNN Senior White House Correspondent Brianna Keilar. "I think that's been borne out. That doesn't mean it's not a challenge. Of course it is."
Carney also pointed out that Gates, a Republican who also served as defense secretary in President George W. Bush's administration, writes in his book that he never doubted Obama's commitment to American troops.
White House denies Obama-Biden lunch opened due to gates book
Gates was part of the "team of rivals" Obama assembled at the beginning of his tenure, Carney said, and disagreements on policy were to be expected.
"When you pick a team of rivals, you do so in part because you expect competing points of view and competing opinions," Carney said. "And that's very much what the President expects in foreign policy and domestic policy, and that's what he gets. And he's grateful for it."
Critics have faulted the timing of the memoir's release, though sources familiar with Gates' thinking say he stands by the book and his choice to publish the memoir next week. He argued the book should be taken in full context, noting a considerable amount of praise for Obama, in addition to the tough criticisms.
Carney also defended Vice President Joe Biden against Gates' criticism. Of Biden, Gates wrote, "I think he has been wrong on nearly every major foreign policy and national security issue over the past four decades.”
"He's played a key role in every major national security and foreign policy debate and policy discussion in this administration, in this White House," Carney said.
National Security Council spokeswoman Caitlin Hayden said Tuesday the President "deeply appreciates Gates' service," and noted that the President is open to differing points of view from his national security team.
A former White House official contested the excerpts, first reported by the New York Times and the Washington Post, saying, "I thought the President was a close ally of Gates. It's disappointing, because if Gates had issues you would've expected him to raise them. When I spoke to Gates about the president he was always effusive."
Hayden also said Obama disagrees with Gates' assessment of Biden, hailing the vice president as "one of the leading statesmen of his time."
Gates saw Biden as his "nemesis" on Afghanistan, one source close to Biden’s thinking told CNN Chief Political Analyst Gloria Borger.
Another source described Biden as "relentless" in advancing his point of view against the troop surge in Afghanistan. There is also a feeling among the sources that as people became more skeptical about how the surge was working, Gates became somehow different.
The sources also pushed back on Gates' apparent assumption that politics never plays into any decisions regarding war.
It's not "disingenuous to take into account where the American people are when it comes to war," one source said. Another source said, "Military action needs the support of the American people."
Another source said that while the President "was very fond of Gates," the defense chief and vice president were never close.
Gates also suggests that Obama and Secretary of State Hillary Clinton had political motives for their positions on Iraq.
"Hillary told the president that her opposition to the  surge in Iraq has been political because she was facing him in the Iowa primary,” Gates writes. “The president conceded vaguely that opposition to the Iraq surge had been political. To hear the two of them making these admissions, and in front of me, was as surprising as it was dismaying."
A former White House official responded saying, "President Obama evaluated the merits of the surge but his opposition to it was not political, rather in line with his thought that more of the same was not the right path."
And Democratic groups backing Clinton pointed to her commitment to defeating al Qaeda and ending the wars in Iraq and Afghanistan, also noting the praise Gates offers of Clinton as a person in the book.
Gates also offers a scathing critique of Congress calling the legislative body "uncivil, incompetent at fulfilling their basic constitutional responsibilities (such as timely appropriations), micromanagerial, parochial, hypocritical, egotistical, thin-skinned and prone to put self (and re-election) before country."
"Congress is best viewed from a distance – the farther the better – because up close, it is truly ugly," Gates wrote in a piece in the Wall Street Journal, which was adapted from his book.
Critics have indicated it would have been more appropriate to wait to release the harsh critique until after Obama leaves office.
But a source close to Gates says he stands by the content and the timing of the book, adding that he didn't want to wait because he believed the content of his book is all still relevant and the content should be discussed real time.
Another source familiar with Gates' thinking told CNN Chief National Correspondent John King that the book was ready to be published in June 2012, an even more politically sensitive time months before the November elections, but Gates waited.
That same source said that the former defense secretary believes Bob Woodward, the longtime Washington Post reporter who reviewed Gates' memorial, has an anti-Obama bias, evident in his account of the book. The source notes the quotes from the memoir in Woodward's review are accurate.
The source also says that Gates was aware of the controversies the book would cause but "just didn't want to pull any punches," saying many books like this are bland because the person writing it either has political ambition or is too close to a big mistake to be fully candid.
Gates realized the toll the job was taking on him, according to the source, and had "become so paternal in concern for the troops" and erred on the side of caution, rather than effectiveness.
CNN's Kevin Liptak, Barbara Starr, Dana Bash, Dan Merica, Dana Davidsen and Ashley Killough contributed to this report.