Backend, Data & Security More detail A1 · Official standard Platform: Web

OAuth 2.0

OAuth 2.0 is an authorization framework. It lets an app get limited permission to use protected data for a person or for the app itself.

See how it works
You might call it OAuthdelegated authorization

See how it works

Original worked exampleOAuth 2.0

Another example

A photo-printing app sends a customer to the photo service's authorization page and uses Authorization Code with PKCE. It checks `state` and the exact redirect URI, then gets a token limited to `photos.read`. Access can be revoked, and the printer never sees the customer's password.

Main parts

  1. 01Resource owner and client
  2. 02Authorization server and grant
  3. 03Scoped access token and resource server

Use it when

Use it to give limited API permission through a trusted authorization server. Follow current security guidance for that kind of client.

Do not use it when

OAuth is not user authentication. Do not put bearer tokens in URLs, use Implicit Flow in new systems, or invent your own grant type.

Name used in code

Authorization Code + PKCE; scoped access token; exact redirect URI; state/issuer validation

Before you ship

Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.

Request you can copy

Outcome: Design or review OAuth 2.0 for this system while keeping data correct, secure, and easy to operate. User context: A photo-printing app sends a customer to the photo service's authorization page and uses Authorization Code with PKCE. It checks `state` and the exact redirect URI, then gets a token limited to `photos.read`. Access can be revoked, and the printer never sees the customer's password. Technical concept or control: OAuth 2.0. Why it fits: Use it to give limited API permission through a trusted authorization server. Follow current security guidance for that kind of client. Do not use it when: OAuth is not user authentication. Do not put bearer tokens in URLs, use Implicit Flow in new systems, or invent your own grant type. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): The standard covers only the listed scope. It does not choose the visual style, product decision, or Vibulary example. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.

Check this request

Review the current use of OAuth 2.0. Definition: OAuth 2.0 is an authorization framework. It lets an app get limited permission to use protected data for a person or for the app itself. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

A1
How official is this term?

Official standard

A named standard sets the rules described on this page.

The standard covers only the listed scope. It does not choose the visual style, product decision, or Vibulary example.

Scope
OAuth 2.0 authorization framework
Document status
standards track
Checked on
2026-07-30

Evidence sources & scope

Authority source + Term reference · IETF · standards track The OAuth 2.0 Authorization Framework — 1. Introduction 1. Introduction Scope: OAuth 2.0 roles, protocol flows, and tokens; direct scope: 1. Introduction Role here: Direct term reference Source covers: canonical name, definition, semantics, implementation Authority source · IETF · standards track The OAuth 2.0 Authorization Framework Scope: OAuth 2.0 roles, protocol flows, and tokens Role here: Authority within stated scope Source covers: canonical name, definition, semantics, implementation Authority source · IETF · stable Best Current Practice for OAuth 2.0 Security Scope: OAuth 2.0 security requirements and current practice Role here: Authority within stated scope Source covers: accessibility, usage guidance, avoidance guidance

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.