EN
Back to the archive

The encyclopedia · Software & IT · Technical decision · 2006–2012

OAuth let apps use a user's other accounts by swapping a token for the password.

Instead of an app asking for a password, OAuth issued a scoped access token, so 'log in with Google' became the standard without exposing credentials.

Twitter · Google · OAuth community

the move

In 2006 the web was full of services that wanted to read a user's other accounts, but there was no agreed way to let them. The blunt options were to ask for the password or to build a separate and incompatible integration for every pair of sites.

Blaine Cook, Chris Messina, Larry Halff and David Recordon met over using OpenID with the Twitter and Ma.gnolia APIs and concluded that no open standard for API access delegation existed. They drafted OAuth in public, and it became OAuth Core 1.0 in October 2007, then OAuth 1.0 in April 2010 and OAuth 2.0 in October 2012.

The fix was to stop sharing the secret. The user approves access, and an authorization server hands the third-party app an access token scoped to what was granted. The token is a revocable 'valet key', so the app can act for the user without the user's password ever leaving the account provider.

Once the pattern existed, the big platforms built on it. From August 2010 all third-party Twitter applications had to use OAuth, and Google, Meta, Microsoft and Amazon use it as the way to let outside apps reach a user's account.

why it works

  • Asking for a password is a takeover, not a delegation; no user wants to give it
  • A scoped token can be limited, shown and revoked instead of a full credential
  • One open protocol meant both sides could build to the same spec
the payoffHand over a scoped token, not your passwordclever

what transfers

When the friction is refusing to hand over a password, solve for delegation: a revocable, scoped token lets an app act for a user without learning the secret.

what came after

OAuth became the default 'log in with' button and the basis for OpenID Connect. The token model brought its own risk: in 2017 about one million Gmail users were hit by an OAuth-based phishing app, and lead author Eran Hammer resigned in 2012, saying 2.0 had become 'more complex, less interoperable' than 1.0.

references

spotted an error? The archive wants to know.

same kind of clever