Skip to main contentSkip to main content
    Back to Glossary
    security
    2 min read

    OAuth 2.0

    OAuth 2.0 is an authorization framework that enables secure delegated access, allowing users to grant third-party apps limited access to their resources without sharing credentials.

    OAuth 2.0 is the industry standard for authorization. It separates authentication (who you are) from authorization (what you can do).

    OAuth 2.0 grant types: - Authorization Code: For server-side apps (most secure) - Authorization Code + PKCE: For mobile/SPA apps - Client Credentials: For machine-to-machine - Refresh Token: For obtaining new access tokens

    Key concepts: - Access Token: Short-lived token for API access - Refresh Token: Long-lived token to get new access tokens - Scopes: Define what permissions are granted - Authorization Server: Issues tokens

    Security best practices: - Use PKCE for all public clients - Short access token lifetime (minutes) - Validate tokens server-side - Use secure token storage

    Why It Matters

    OAuth 2.0 is the foundation of modern API security and third-party integrations. Misimplemented OAuth flows—such as missing PKCE, overly broad scopes, or improper token storage—are common attack vectors that lead to account takeover and data exposure. Understanding OAuth security best practices is essential for any organization building or consuming APIs.

    Key Points

    Standard for delegated authorization
    Always use PKCE for mobile and SPAs
    Access tokens should be short-lived
    Different grant types for different use cases
    Not for authentication—use OpenID Connect for that

    Applicable Compliance Frameworks

    Related Terms

    Frequently Asked Questions

    What is the difference between OAuth and OpenID Connect?

    OAuth handles authorization (permissions). OpenID Connect (OIDC) adds authentication (identity) on top of OAuth. Use OIDC when you need to know who the user is.

    What is PKCE?

    Proof Key for Code Exchange prevents authorization code interception attacks. Required for mobile apps and SPAs where client secrets can't be kept secure.

    Need Help with OAuth 2.0?

    Our experts can help you understand and implement the right controls for your organization.