OAuth
OAuth is an open authorization standard that lets an app access a user's data in another service through limited, revocable tokens instead of the user's password.
Also called: OAuth 2.0, OAuth2, open authorization, OAuth token
OAuth is an open standard that lets one app act on your data in another app without ever seeing your password. When you click "Connect HubSpot" in a tool and approve a consent screen, that's OAuth. For GTM teams it's how most integrations authenticate, and the reason integrations often break when someone leaves the company.
How it works
OAuth 2.0, the current version, separates three parties: the user, the client app that wants access, and the service that holds the data. The common flow, called the authorization code flow, runs like this:
- The client app sends you to the service's login and consent screen.
- You approve specific scopes, such as read contacts or write deals.
- The service hands the app a temporary code, which the app exchanges for tokens.
- The access token goes in the header of each API request. It expires quickly, often within hours.
- The refresh token lets the app get new access tokens without asking you again, until it's revoked or expires.
The app never stores your password, and you can revoke access from the service's settings at any time. Server-to-server setups often use the client credentials flow instead, where an app authenticates as itself rather than as a person.
Example
Say a RevOps lead connected 14 Zapier workflows, a sequencer and a reporting tool to Salesforce using their personal login. They leave, IT deactivates the account, and every token tied to that user stops working the same afternoon (scenario).
If those workflows routed 60 inbound leads a day and the break goes unnoticed for 3 days, that's 180 leads without owners. At a 15% lead-to-meeting rate (assumption), that's about 27 meetings at risk. Reconnecting everything under a dedicated integration user takes maybe 4 hours and would have prevented all of it.
OAuth vs API keys
An API key is simple: one long-lived secret, usually with broad access. OAuth is more work to set up but safer. Tokens are scoped, short-lived, tied to an identity and revocable one app at a time.
Use OAuth whenever a tool offers it for a user-facing connection, especially into the CRM. Use API keys for server-side jobs where the vendor only offers keys. Either way, treat connections as part of data governance: know which identity each integration uses and what it can touch.
Common mistakes
- Authorizing core integrations with a personal account instead of a dedicated integration user.
- Granting every scope offered when the integration only needs read access to two objects.
- Ignoring "reconnect" warnings until the refresh token fully expires.
- Not keeping an inventory of which apps hold tokens to the CRM.
- Assuming a password reset is harmless when some services revoke tokens on reset.
FAQ
What is the difference between OAuth and an API key?
An API key is a static secret tied to an account or app. OAuth issues short-lived access tokens on behalf of a specific user, limited to approved scopes, which can be refreshed or revoked without touching the user's password.
Why do OAuth integrations suddenly stop working?
The usual causes are an expired or revoked refresh token, the authorizing user being deactivated or losing permissions, a password or security policy change, or the app requesting new scopes. Reconnecting with a dedicated integration user prevents most of these.
Is OAuth the same as single sign-on?
No. OAuth is about authorization, granting an app access to data. Single sign-on is about authentication, proving who a person is. OpenID Connect is a layer on top of OAuth 2.0 that many SSO setups use.
Related
Used in these articles
Sources