Truth uncovered: this login flow has almost nothing to do with OAuth, it is actually much more similar to OpenID.
Listen to the StackOverflow podcast episodes from 2008 and 2009.
I spent so much time dealing with identity and login standards back from 2005 to 2009. We both changed the world and enabled the centralization and consolidation of the social web. Win some, lose some.