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.