What is OAuth?
OAuth is an open standard that lets a user give an app limited access to their data on another service, through a token, without sharing their password with the app.
Also called: OAuth 2.0, delegated authorization
How it works
An app that wants access sends the user to the service that holds the data. The user signs in there and approves a set of permissions, called scopes. The service then gives the app an access token, often short-lived, plus sometimes a refresh token to get new ones.
The app uses the token to call the service's API. It never sees the user's password, and the user can revoke the app's access later. OAuth is about authorization. Sign-in features built on top of it, such as OpenID Connect, add a way to prove who the user is.
Why it matters for fraud and trust
OAuth removes the need to hand passwords to third parties, which is a big gain. But tokens are valuable in their own right. A stolen token can give an attacker access without a password or multi-factor authentication prompt.
Attackers also abuse the consent step. In consent phishing, a user is tricked into approving a malicious app that asks for wide scopes, such as reading all email. This is close in spirit to approval phishing in crypto.
Warning signs
- A new app that asks for broad scopes it does not need.
- Tokens used from a device or network that does not match where they were issued.
- Many grants to the same unknown app across users in a short time.
- API activity at a speed or volume no person would produce.
OAuth and AI agents
OAuth is a common way to let AI agents act on a user's behalf, for example to read a calendar or place an order. Narrow scopes, short token lives and clear records of which agent holds which token help keep that access under control.
Related terms
- Agent authenticationAgent authentication is how an AI agent proves which agent it is and on whose behalf it acts, using methods such as API keys, OAuth delegation and signed requests.
- Multi-factor authentication (MFA)Multi-factor authentication (MFA) requires two or more different kinds of proof to log in or approve an action, such as something you know, something you have, and something you are.
- Approval phishingApproval phishing tricks a crypto user into granting an attacker permission to spend their tokens, so the attacker can take them later without the user's keys.
- Account takeover (ATO)Account takeover is when someone other than the owner gains control of a real user's account, usually with stolen credentials, and uses it to steal money, data or rewards.
- AI agentAn AI agent is software that uses a language model to plan and take actions toward a goal, such as browsing sites, calling APIs or filling in forms, with little or no human input at each step.