In 2007, the most common security protocol on the web was a small act of faith: type your email password into somebody else's website and hope for the best.

They called it the password anti-pattern, and it was less a design decision than a hostage exchange. To let a photo-printing service fetch your holiday pictures, you handed over the same secret that opened your inbox, your calendar and every other account you had ever created. No expiry. No scope. No way to fire one application without changing the lock on all of them.

The fix arrived in two acts. RFC 5849 codified OAuth 1.0 in April 2010. Its successor, RFC 6749 — the OAuth 2.0 Authorization Framework, published in October 2012 — is the document that turned delegated access into plumbing: instead of handing over a secret, you hand over a capability with a name, a scope and an expiry date.

Its central object is the access token, and its definition is the most quietly consequential sentence in modern web architecture: “An access token is a string representing an authorization issued to the client. The string is usually opaque to the client. Tokens represent specific scopes and durations of access, granted by the resource owner, and enforced by the resource server and authorization server.”

A token is not a name. It is a permission with a lifetime. Everything since — the consent screens, the token sprawl, the decade of patches — flows from that substitution, and from the parts of it the specification deliberately refused to decide.

The valet key, and the signature tax

The people who started it were not standards bureaucrats. In 2007 Blaine Cook at Twitter, Larry Halff at Ma.gnolia, David Recordon at Six Apart and Chris Messina opened a Google Group to solve a problem they all had: every new web application wanted your email password, and every one of them kept it.

The metaphor of the era was the valet key — a key that starts the car and opens the door but not the trunk. OAuth 1.0 was that key with a paranoid flourish attached. Every single API call carried a signature: a nonce, a timestamp and an HMAC-SHA1 digest computed from secrets that never travelled. A request intercepted in transit was useless to anyone who could not reproduce the arithmetic.

It was elegant. It was correct. It was also miserable to implement, and developers who fumbled the signature base string spent entire weekends staring at 401s. Twitter, which had lit the fuse, moved its own API onto OAuth anyway. The valet key had a customer.

RFC 6749: the signature dies, the bearer is born

October 2012. Dick Hardt edits the final document. The signature machinery is gone, replaced by the bearer token, standardised the same month in RFC 6750. The definition is disarmingly blunt: “any party in possession of a bearer token (a ‘bearer’) can use it to get access to the associated resources (without demonstrating possession of a cryptographic key).”

Which means the security model moved into TLS. If a token leaks — into a log, a URL, a browser history, a screenshot in a support ticket — it works for whoever is holding it. The specification knows this, which is why its security chapter treats access tokens as credentials first and everything else second.

What replaced the cryptography was architecture. RFC 6749 separates four roles: the resource owner grants, the authorization server issues, the resource server enforces, and the client merely carries. It is a separation of powers drawn by people who had watched what happens without one.

A capability is not a name

The distinction the document draws is precise, and it is the reason the thing has lasted. A password answers “who are you?” — badly, but that is the job. A token answers “what may this application do, for how long, and on whose behalf?” That is a capability, and capabilities behave differently from identities: they can be narrowed, timed, delegated again, and in principle withdrawn.

It is also why “Sign in with Google” is a small category error wearing a button. OAuth never said who you are. OpenID Connect, launched in 2014, had to be invented to bolt identity back onto a protocol that had deliberately refused to define it. The industry then spent a decade writing posts titled “OAuth is not authentication”, each one rediscovering the same sentence in section 1.4.

The schism: Eran Hammer and the road to hell

Three months before publication, the man who had led the specification walked away from it. In July 2012 Eran Hammer-Lahav, editor of the earlier OAuth 2.0 drafts, withdrew his name and published a farewell titled “OAuth 2.0 and the Road to Hell”. His complaint was not that the protocol was broken but that it had been inflated: signatures traded for bearer tokens, a protocol traded for a “framework”, four grant types where one would do, and enough optionality that two conforming implementations could behave like different species.

The published RFC lists Dick Hardt as editor. Hammer's name is not on it. It remains one of the stranger artefacts in internet history: a foundational standard issued over the objections of the person who had done most to write it.

What RFC 6749 refused to decide

Read the document for its silences and they are loud.

  • Scope is optional. In the authorization request, the scope parameter is marked OPTIONAL. The field that names what a token may do is not required to be present at all.
  • Expiry is recommended. expires_in is RECOMMENDED, not required. A token with no stated lifetime does not violate the text.
  • Format is undecided. A token “may denote an identifier used to retrieve the authorization information or may self-contain the authorization information in a verifiable manner”. Opaque lookup or signed blob: the specification describes both and chooses neither.
  • Revocation is elsewhere. The exit right arrived a year later as RFC 7009, an optional extension. For opaque tokens, even asking whether a token is still alive needed another document, RFC 7662, in 2015.
  • The password survives. The framework that killed password sharing kept one grant in which the client still collects your password — and named it after the resource owner.

None of that is sloppiness. It is the price of a framework broad enough to cover a browser redirect, a smart television, a cron job and a mobile app. But a silence in a specification becomes a decision somewhere else, and that somewhere is usually the product meeting of whoever runs the authorization server.

The authorization server is a small sovereign

Once the mechanism stops at the protocol boundary, the policy starts. Who writes the scope vocabulary? Who decides whether “read your contacts” means the list, the photos, or the entire address book? Who sets the refresh token's lifetime — the long-lived grant that keeps an application connected long after the user has forgotten granting it? Who makes revocation real rather than a button that files a ticket?

In every case the answer is the operator of the authorization server, and the consent screen is the constitution nobody reads. This is the permission economy, and its unit of account is a string that no user has ever inspected.

It is also where lock-in now lives. Not in a password the user cannot change, but in a permission the user cannot meaningfully audit: a private language of scopes, a refresh token with a generous half-life, and a revocation path that may or may not exist. The framework supplies the machinery and leaves the policy to whoever operates it. Every misuse later attributed to delegation is a policy that was never written, not a mechanism that was missing.

The decade of patches

The silences got filled, mostly by people who had not been in the room.

PKCE (RFC 7636, 2015) patched the authorization code flow for public clients that cannot keep a secret. JWT (RFC 7519, 2015) made the self-contained token a de facto standard and turned the opaque-versus-signed fork into a running argument about size, revocation and privacy. OpenID Connect added the identity layer the original had refused. And the implicit flow — the one grant RFC 6749 designed specifically for browsers — is the one its successor retires.

That is not a failure of the document. It is what a deliberately thin specification looks like after a decade of contact with reality: a small core, a long tail of extensions, and an industry that keeps rediscovering which parts were load-bearing.

Why the valet key still matters

Every “Sign in with…” button, every API key, every scoped credential handed to an AI agent is the same shape: a capability, issued by someone, for something, for a while. The vocabulary has grown. The structure has not.

Which is the real lesson of RFC 6749, and the reason it belongs in a history of lock-in rather than a history of login. Replacing a secret with a permission moves the problem; it does not remove it. The credential got smaller, narrower and shorter-lived — and then multiplied, because there are now thousands of them per user instead of one. The handling duties did not disappear. They were distributed.

OAuth did not make the web trustless. It made trust itemised. And itemised trust, like any ledger, is only as good as the clerk who keeps it.