TechnologyAuthorization framework

OAuth

Also known as: OAuth 2.0, Open Authorization

Open standard for delegated authorization that lets applications access a user's resources on another service without receiving the user's password.

OAuth is an open authorization framework that allows a user to grant an application limited access to their data on another service without sharing their password. In a typical flow, the application redirects the user to the service's authorization server, the user signs in there and approves specific permissions, called scopes, and the application receives an access token that it presents to the service's API. Tokens can be limited in scope and lifetime and revoked independently, applying the principle of least privilege to connections between apps.

OAuth 1.0 was developed by an informal community of developers in 2007 and later published by the IETF as RFC 5849. The redesigned OAuth 2.0 framework, published by the IETF in 2012 as RFC 6749, simplified implementation by relying on TLS and introduced multiple grant types for web apps, mobile apps, devices and server-to-server use. Later specifications added protections such as PKCE for public clients and deprecated weaker flows, and an OAuth 2.1 draft consolidates accumulated best practices. OpenID Connect builds an identity layer on top of OAuth 2.0.

OAuth underlies sign-in buttons, third-party app connections and many enterprise integrations. It is often confused with authentication: OAuth itself grants access to resources, while OpenID Connect adds a standard way to learn who the user is. Security depends on careful implementation, including strict redirect URI validation and protection of tokens. Attackers also abuse consent screens, tricking users into granting permissions to malicious apps in a form of phishing, so reviewing app permissions is an important habit.

Key points

  • OAuth lets users grant apps limited access to their data without sharing passwords.
  • OAuth 2.0 was published by the IETF in 2012 as RFC 6749.
  • OpenID Connect adds an identity layer on top of OAuth 2.0.
  • Malicious apps can abuse consent screens, so granted permissions should be reviewed.

In their own words

An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications.

From oauth.net (opens in a new tab)

Related entries

Glossary term

Authentication

Cybersecurity

The process of verifying that a person, device or system is who or what it claims to be before granting access to resources.

Glossary term

Multi-Factor Authentication

CybersecurityOPSEC

Sign-in method that requires two or more independent kinds of evidence, such as a password plus a phone or security key, before granting access.

Organization

Open standards organization that develops the technical specifications for core internet protocols and publishes them as Requests for Comments.

Glossary term

API

Programming

Defined set of rules and interfaces through which one piece of software can request services or data from another without knowing its internals.

Glossary term

Principle of Least Privilege

CybersecurityDevOps

Security principle that every user, program and process should have only the minimum access rights needed to perform its legitimate function.

Glossary term

Phishing

CybersecurityOPSEC

Deceptive messages or websites that impersonate trusted parties to trick people into revealing credentials, sending money or installing malware.

Glossary term

REST API

ProgrammingAI

Web interface that follows the REST architectural style, exposing resources at URLs that clients manipulate with stateless HTTP requests.

Glossary term

Passkey

CybersecurityOPSEC

Passwordless login credential based on public-key cryptography and FIDO standards that is stored on a device and cannot be phished or reused across sites.