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 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.