What is the difference between OAuth 2.0 and OpenID Connect?

Last updated 29 June 2026

  • OAuth 2.0 is an authorization framework: it issues an access_token to call APIs on a user's behalf but doesn't standardize user identity.

  • OpenID Connect (OIDC) is an identity layer on top of OAuth that adds authentication via an id_token (a JWT with user claims), the openid scope, and a UserInfo endpoint.

  • Rule of thumb: "Sign in with Google" is OIDC. "Let this app access my Google Drive" is OAuth 2.0.

  • https://auth0.com/docs/get-started/identity-fundamentals/authentication-and-authorization
  • https://developer.okta.com/docs/concepts/oauth-openid/
  • https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols
  • https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc
  • https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/saml-vs-oidc-decision-guide
  • https://learn.microsoft.com/he-il/azure////active-directory/develop/authentication-vs-authorization
  • https://www.freecodecamp.org/news/api-authentication-authorization-mechanisms-trade-offs-and-failure-modes/
All REST API interview questions