# OAuth

> OAuth is an open standard that lets a user give an application limited access to their account on another service, such as reading their calendar or CRM, without sharing their password, by issuing scoped and revocable access tokens.

Also called: OAuth authorisation, OAuth flow, sign in with, delegated access, access token. Category: Agents and automation. Source: https://aibuildindex.com/glossary/oauth

## In the index

- User authentication: median $2,800, middle half $800 to $5,760, 218 priced briefs (https://aibuildindex.com/skills/user-authentication)
- API integration: median $2,500, middle half $500 to $7,680, 11,407 priced briefs (https://aibuildindex.com/skills/api-integration)

OAuth is the mechanism behind the "Allow this app to access your Google account" screen. Instead of handing an application your password, you approve a specific set of permissions, and the service gives the application a token it can use within those limits. For a business buyer OAuth matters whenever an AI tool or automation needs to act on users' own accounts, such as their inbox, calendar or CRM, and it affects both security and the timeline to launch.

## How it works

In the most common flow, the authorisation code flow, an app sends the user to the service's sign-in page with a list of requested **scopes**, such as read-only calendar access. The user signs in and approves. The service redirects back to the app with a short-lived code, which the app exchanges, using its own client credentials, for an **access token** and often a **refresh token**. The app sends the access token with each [API](https://aibuildindex.com/glossary/api) call. When it expires, the refresh token gets a new one without asking the user again.

Users or administrators can revoke access at any time, which invalidates the tokens. Related standards build on OAuth: OpenID Connect adds identity, which powers "Sign in with" buttons.

For example, a meeting assistant that books follow-ups needs calendar access for each salesperson. Each person connects their calendar through OAuth once; the assistant stores the tokens securely and uses them to read availability and create events, limited to the scopes they approved.

## What it means for cost

OAuth adds work beyond a simple API key:

- **App registration and review.** Many providers, including Google and Microsoft, require apps requesting sensitive scopes to go through verification or security review before public use, which can add weeks to a launch timeline.
- **Token storage.** Refresh tokens are powerful credentials and must be encrypted and handled carefully.
- **Multi-tenant design.** A product used by many customers needs per-customer connections, expiry handling and reconnect flows.
- **Scope choices.** Asking for broad access slows approval and worries users; narrow scopes need more careful design.

Ask a builder which scopes are needed, whether provider verification is required, and how tokens will be stored and revoked.

## Common questions

### Is OAuth the same as logging in?

Not exactly. OAuth is about granting an app access to resources on your behalf. Logging in, meaning proving who you are, is handled by OpenID Connect, which is built on top of OAuth. Many "Sign in with" buttons use both.

### Why do OAuth connections sometimes stop working?

Tokens can expire, be revoked by the user or an administrator, or be invalidated when a password changes or a security policy updates. A well-built app detects this and asks the user to reconnect rather than failing silently.

## Related terms

- [API](https://aibuildindex.com/glossary/api): An API, or application programming interface, is a defined way for one piece of software to request data or actions from another, such as fetching a customer record, sending a message or calling an AI model, without a person using a screen.
- [API integration](https://aibuildindex.com/glossary/api-integration): API integration is the work of connecting two or more software systems through their APIs so that data and actions flow between them automatically, for example syncing orders to accounting or sending CRM records to an AI model.
- [Access control](https://aibuildindex.com/glossary/access-control): Access control is the set of rules and mechanisms that decide who or what can see, change or act on which data and functions in a system, so that users, staff and AI agents only reach what their role requires.
- [REST API](https://aibuildindex.com/glossary/rest-api): A REST API is a web API that follows the REST style, exposing data as resources at URLs and using standard HTTP methods such as GET, POST, PUT and DELETE to read and change them, usually exchanging data as JSON.
- [Personal data (PII)](https://aibuildindex.com/glossary/personal-data): Personal data is any information that relates to an identifiable living person, such as a name, email address, phone number, location or customer ID; in the US it is often called personally identifiable information, or PII, and its handling is governed by data protection law.
