Answer

What is OAuth?

OAuth replaced the pattern of users sharing passwords with third-party apps. The user controls what each app can access, can revoke access, and never gives up their primary credentials.

Short answer

OAuth is an authorization protocol that lets a user grant one application limited access to data in another application without sharing their password. The user signs in to the source app (Google, Microsoft, Salesforce), approves specific permissions, and the receiving app gets a token it can use to access the authorized data. OAuth 2.0 is the current standard. It is the pattern behind "sign in with Google" and most third-party integrations in modern SaaS.

Key points

What matters most.

The five things to understand about OAuth before building an integration or evaluating a vendor's security posture.

Definition

Authorization without password sharing.

OAuth is a standard for granting one application limited access to data in another without sharing credentials. The user authenticates with the source application, approves specific scopes, and the receiving application gets an access token. The token has a defined scope, defined expiration, and can be revoked.

OAuth 2.0

The current standard.

OAuth 2.0 is the current widely adopted version, finalized in 2012. It defines several flow types (authorization code, client credentials, implicit, device, PKCE) that cover different integration scenarios. Most modern SaaS integrations use the authorization code flow with PKCE for web applications or the device flow for CLIs and desktop apps.

Scopes

The user controls what gets shared.

Each OAuth integration requests specific scopes (read email, write calendar events, read contact list). The user sees the scopes at authorization time and approves or declines. The receiving application cannot access data outside the approved scopes. Scope minimization is a security best practice.

Tokens

Short-lived access, long-lived refresh.

OAuth produces two tokens. An access token with a short lifespan (often one hour) that the receiving app uses for API calls. A refresh token with a longer lifespan that lets the app obtain new access tokens without user interaction. The pattern limits exposure if an access token leaks.

Where it fits

Third-party integrations, SSO, mobile apps.

OAuth is the standard pattern for third-party SaaS integrations (connecting Gmail to a CRM, connecting a project tool to Slack), single sign-on, mobile app authentication, and any case where one application needs limited access to data in another. The protocol is near-universal in modern SaaS.

How the flow works

The six steps of a typical OAuth exchange.

The authorization code flow is the most common OAuth pattern. The six steps below describe what happens from the user's click to the receiving application having access.

Step 1

User clicks "connect".

The user, inside the receiving application, clicks a "connect Gmail" or "connect Microsoft 365" button. The receiving application redirects the user's browser to the source application's authorization URL with information about the receiving application (client ID, requested scopes, redirect URL).

Step 2

User authenticates with the source.

The source application (Google, Microsoft, Salesforce) presents its own login screen. The user authenticates with their primary credentials, which never pass through the receiving application. If the user is already logged in, this step is often skipped and the user goes directly to the approval screen.

Step 3

User approves the scopes.

The source application shows the user the requested scopes: "This app wants to read your email, send email on your behalf, and read your contact list." The user approves or declines. The approval screen is where the user controls what the integration gets to access.

Step 4

Source redirects back with code.

If the user approves, the source application redirects the browser back to the receiving application with an authorization code in the URL. The code is short-lived and single-use. It is not the access token yet; it is an intermediate credential that the receiving application exchanges for the actual tokens.

Step 5

Receiving app exchanges code for tokens.

The receiving application makes a server-to-server API call to the source application, trading the authorization code (plus its client credentials) for an access token and a refresh token. The exchange happens on the backend so tokens never pass through the user's browser. The receiving app now has valid tokens.

Step 6

Receiving app makes API calls.

The receiving application uses the access token to make API calls to the source application: read emails, write calendar events, fetch contacts. When the access token expires, the application uses the refresh token to obtain a new access token without user interaction. The integration runs seamlessly from the user's perspective.

What OAuth protects against

The security problems OAuth solves.

OAuth replaced an earlier generation of integration patterns that exposed users to specific security risks. The six protections below are the ones that justify the protocol's adoption across modern SaaS.

Password sharing

Users never give passwords to third parties.

Before OAuth, users commonly gave their password to third-party apps so the app could log in on their behalf. The pattern exposed users: a compromised third party meant a compromised primary account. OAuth lets users grant access without sharing the password at all.

Over-broad access

Scopes limit what apps can see.

A password-based integration had access to everything the user could do. OAuth scopes limit access to specifically approved resources: an app with "read email" scope cannot send email or access contacts. Scope limitation reduces the blast radius if a third party is compromised.

Revocation

Users can disconnect at any time.

OAuth tokens can be revoked by the user through the source application's security settings. Revocation is immediate: the third party loses access without needing user cooperation. Password-based integrations required changing the password and reconfiguring every integration, which users rarely did.

Expiration

Short-lived access tokens.

Access tokens expire quickly, typically within an hour. A leaked access token has limited value because it stops working soon. Refresh tokens handle the renewal without user interaction, so the user experience remains seamless while the exposure window stays small.

Audit trail

Source apps log third-party access.

The source application logs every access by every third party, so users and administrators can see which apps are accessing what data when. The visibility supports security review and compliance audit. Password-based integrations provided no such visibility.

Centralized control

MFA, SSO, password policy all enforced.

Because OAuth authentication happens at the source application, the source's security policies (MFA, SSO, password rotation) all apply. The third-party receiving application inherits those protections without implementing them. The pattern consolidates security policy at the source.

OAuth in practice

How OAuth shows up in modern SaaS.

OAuth is near-universal in modern SaaS. The six patterns below are the ones that appear most often in enterprise environments.

"Sign in with" buttons

The user-facing side.

The "sign in with Google" or "sign in with Microsoft" buttons on login screens are OAuth flows. The user authenticates with the source application, and the receiving application creates or recognizes a user account based on the authenticated identity. Common for consumer and SMB SaaS.

Email and calendar integration

Gmail, Outlook, Zoom.

CRM and sales tools connect to Gmail or Microsoft 365 via OAuth to log emails, read calendar events, and schedule meetings. The integration is scoped to specific permissions (read email, write calendar). The user approves at setup and can revoke anytime.

Platform integrations

Salesforce, HubSpot, Slack.

Cross-SaaS integrations (connecting Salesforce to a project tool, integrating Slack with a CRM) use OAuth so the receiving app can call APIs on the source platform on behalf of the user. Platform integrations are typically scope-rich because they need read and write access to multiple object types.

Mobile apps

Device flow and PKCE.

Mobile apps use OAuth with device flow or PKCE (Proof Key for Code Exchange) to authenticate users without storing shared client secrets on the device. The patterns protect against token theft on mobile. Most modern mobile SaaS clients use OAuth.

Admin consent

Enterprise approval flows.

Enterprise OAuth integrations often require admin consent at the organization level, not just user consent. An administrator approves the integration for the entire organization, which lets users sign in without each one approving individually. The pattern is standard for enterprise SSO.

Scoped API keys

OAuth-generated service tokens.

For server-to-server integrations without a user context, OAuth's client credentials flow produces scoped service tokens. The pattern replaces older long-lived API keys with tokens that expire, rotate, and carry specific scopes. Modern SaaS APIs increasingly favor OAuth over static API keys for security.

Review Strkr integrations and OAuth posture in the trust center.

The published trust center carries the current OAuth integration list, token management posture, and SOC 2 Type II progress. BAAs and compliance documents are available on request.

People also ask

Related questions.

What is the difference between OAuth and SSO?

OAuth is an authorization protocol: it grants one application access to data in another. SSO (single sign-on) is a broader concept: a user signs in once and gains access to multiple applications. SSO often uses OAuth (or the related OpenID Connect standard) as the underlying protocol, but they are not the same thing. OAuth is a mechanism; SSO is a user experience.

Is OAuth secure?

Yes, when implemented correctly. OAuth is a well-reviewed standard with widely adopted security best practices. Risks come from implementation mistakes: broad scopes, long-lived tokens stored insecurely, missing PKCE on public clients, inadequate token rotation. The protocol itself is strong; the risk is in how it is used.

What is the difference between OAuth and API keys?

API keys are long-lived static credentials that give an application access to an API. OAuth tokens are short-lived, scoped credentials obtained through a user authorization flow. OAuth is more secure because tokens expire, can be revoked, and carry specific scopes. API keys are simpler but less secure. Modern APIs increasingly favor OAuth.

What are OAuth scopes?

Scopes are permissions that specify what an OAuth-authorized application can access. "Read email" is a scope. "Write calendar events" is a scope. The user approves specific scopes at authorization time, and the receiving application cannot access data outside the approved scopes. Scope minimization (requesting only what you need) is a security best practice.

How do users revoke OAuth access?

Users revoke OAuth access through the source application's security settings. Google, Microsoft, Salesforce, and others all expose "connected apps" or "third-party access" pages where users can view and revoke integrations. Revocation is immediate: the third party loses access without needing cooperation.

What is OAuth 2.1?

OAuth 2.1 is a planned consolidation of OAuth 2.0 best practices into a single updated specification. It removes insecure flows (implicit grant, password grant), requires PKCE for public clients, and documents security practices that have become standard since OAuth 2.0 was published. It is a refinement, not a replacement.

Does Strkr use OAuth for integrations?

Yes. Strkr integrations with Gmail, Microsoft 365, Zoom, Slack, Salesforce, Shopify, and others use OAuth for authorization. Tokens are encrypted with AWS KMS. The OAuth posture follows modern best practices including scoped tokens, token rotation, and admin consent flows for enterprise integrations.

Try it free. Bring your team next week.

No sales call, no migration consultant, no four-month implementation. Enter your card, get 14 days of the full Pro tier, cancel any time before day 14 with zero charge. Spin up a workspace, import your CSV, and have something useful before lunch.