Start with Identity
← Glossary
Protocol

OAuth 2.0

OAuth 2.0 is the standard authorization framework for delegated access. It lets a client obtain limited access to a resource owner's data without handling their credentials. OAuth 2.0 is defined by RFC 6749; modern usage should follow OAuth 2.1 guidance, which removes deprecated flows and bakes in PKCE.

The most common OAuth mistake is using it for authentication. OAuth answers "may this client access that resource", not "who is this person", and building a login on the presence of an access token produces well-known impersonation bugs. Use OIDC when you need identity. OAuth 2.1 consolidates the current best practice: authorization code with PKCE everywhere, no implicit flow, no password grant.

See also: OAuth 2.0, OAuth 2.1, OAuth vs OIDC, protect an API with OAuth scopes recipe

Last reviewed By SWI Community TeamSuggest a correctionHow we research