OAuth

From WikiTech, the free technology encyclopedia

Open standard for delegated authorisation

5 sources from Internet Engineering Task Force, OAuth.net and OpenID Foundation. Checked by ByteExplained editors on 4 December 2026. How we check facts

OAuth is an open standard for authorisation that lets a third-party application obtain limited access to a web service on behalf of a user, without the user handing that application their password.[1][2]

Contents
  1. History
  2. How it works
  3. See also
  4. References

History

OAuth began around November 2006, when Blaine Cook was working on the OpenID implementation for Twitter and contacted Chris Messina about using OpenID to delegate access to the Twitter API.[3] Cook, Messina, David Recordon, Larry Halff and others concluded that there was no open standard for delegating access to APIs, and in April 2007 a small group of implementers set up a discussion group to write one.[3] The OAuth Core 1.0 final draft was released on 3 October 2007.[3] After a revision in June 2009, the original authors passed the protocol to the Internet Engineering Task Force (IETF), which published it in April 2010 as an informational document, RFC 5849.[2]

OAuth 2.0 was published in October 2012 as RFC 6749, a Standards Track specification that replaced OAuth 1.0.[1] It is developed by the IETF OAuth Working Group, which is also working on OAuth 2.1, an effort to bring OAuth 2.0 and many common extensions together under a new name.[4]

How it works

RFC 6749 defines four roles: the resource owner (usually the user), the resource server that holds the protected data, the client application that wants access, and the authorisation server that issues credentials.[1] Instead of a password, the client receives an access token, a credential that represents a specific scope and lifetime of access approved by the resource owner.[1]

The OAuth 1.0 specification gives a simple example: a person who wants a printing website to print a private photo stored on a photo-sharing site can have the photo site issue the printer its own credential, so the password is never shared and the access can be limited or revoked separately.[2] OAuth 2.0 offers several "grant types", or ways for a client to obtain a token, including authorisation code, PKCE, client credentials, device code and refresh token; the older implicit and password grants are now treated as legacy.[4]

OAuth deals with authorisation rather than identity. OpenID Connect, an authentication protocol, is built on top of the OAuth 2.0 framework (RFC 6749 and RFC 6750).[5]

See also

References

  1. ^ RFC 6749: The OAuth 2.0 Authorization Framework. Internet Engineering Task Force. datatracker.ietf.org
  2. ^ RFC 5849: The OAuth 1.0 Protocol. Internet Engineering Task Force. datatracker.ietf.org
  3. ^ Introduction (history of OAuth). OAuth.net. oauth.net
  4. ^ OAuth 2.0. OAuth.net. oauth.net
  5. ^ How OpenID Connect Works. OpenID Foundation. openid.net
Technologies on WikiTech
Online security
Web standards
All technologies