OAuth 2.0
OAuth 2.0 is a widely used standard that lets an application access resources hosted by another service on a user's behalf without the user sharing their password with that application. For example, it allows one app to obtain limited, delegated access to data held in another web application. It is designed to grant access to resources, not to verify who a user is.
OAuth 2.0 is an industry-standard delegated authorization framework that enables a client application to obtain scoped access to protected resources, typically via access tokens issued by an authorization server, without exposing the resource owner's credentials to the client. It defines several authorization flows (grant types), such as the authorization code grant, for different client scenarios and API access patterns. OAuth 2.0 is an authorization framework and is not, on its own, an authentication protocol; determining a user's identity requires an additional layer such as OpenID Connect built on top of OAuth 2.0. Note that some vendor documentation informally describes OAuth 2.0 as handling both authentication and authorization, but in the framework itself the identity/authentication function is out of scope.
Why it matters
OAuth 2.0 underpins much of the delegated access that modern web and mobile ecosystems depend on. It allows a client application to obtain scoped access to resources hosted by another service without the user ever handing their password to that client. This delegation model reduces credential exposure and lets resource owners grant limited, revocable access rather than sharing full account credentials, which is central to how APIs are secured today.
A persistent source of risk is the widespread misconception that OAuth 2.0 is an authentication protocol. It is a delegated authorization framework, and on its own it does not verify who a user is. Some vendor documentation informally describes OAuth 2.0 as handling both authentication and authorization, which can lead architects to build identity verification on primitives that were never designed for that purpose. When identity assertions are needed, OpenID Connect, which is built on top of OAuth 2.0, provides the authentication layer; treating a raw OAuth 2.0 access token as proof of user identity is a common and consequential design error.
Because OAuth 2.0 defines several distinct grant types for different client scenarios, choosing the appropriate flow, scoping access tokens narrowly, and validating tokens correctly all materially affect the security posture of an API deployment. The framework's flexibility is a strength for developers but also means that security depends heavily on how each flow and profile is configured.
Who it's relevant to
Inside OAuth 2.0
Common questions
Answers to the questions practitioners most commonly ask about OAuth 2.0.