Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Security & accessibilityJuniorOccasionalTheory

What is the difference between OAuth and OpenID Connect from a tester's perspective?

Answer

OAuth delegates authorization to access protected resources; OpenID Connect adds an identity layer for authentication and user claims. A tester should distinguish access tokens from ID tokens, resource audience from client identity, and consent from sign-in. Verify each token at its intended recipient and never infer authentication merely because an OAuth access token exists.

Strong answer includes

  • separates delegated authorization from authentication
  • distinguishes access tokens and ID tokens
  • mentions issuer, audience and intended recipient validation

Practical example

A tester finds that an app treats the mere presence of a valid OAuth access token as proof the user is signed in and grants access to a personal dashboard; because that access token was scoped only for calling a weather API and carries no verified identity claims, this is a real authentication bug that only surfaces once someone asks specifically where the ID token is actually being validated.

#oauth#openid-connect#authentication#security-qa

Sources

RFC 9700 — Best Current Practice for OAuth 2.0 SecurityIETF · Current OAuth threat model, authorization flow protections and token securityOpenID Connect Core 1.0OpenID Foundation · Authentication, ID tokens, claims, issuer, audience and nonce validation