Prompt
Do I need OIDC instead of OAuth for sign in?
Latest observation
Nov 5, 2026
OpenAI APIWeb search: off
Usually, yes: if your goal is “sign in with Google/Microsoft/GitHub/etc.”, you typically want OpenID Connect (OIDC), not plain OAuth.
Quick rule
- OAuth 2.0 = authorization
Used to let an app access an API on a user’s behalf. - OIDC = authentication layer on top of OAuth 2.0
Used to verify the user’s identity and get basic profile info.
Why OAuth alone isn’t enough for sign-in
OAuth by itself only tells you:
“This app has been granted access to X scopes.”
It does not reliably tell you:
- who the user is,
- whether the token is really about that user,
- how to validate the login.
OIDC adds:
- an ID token,
- standard identity claims like
sub,email,name, - an identity-centric flow meant for login.
When to use what
Use OIDC if you want:
- user login / authentication,
- “Sign in with …”,
- SSO,
- a standard identity token.
Use OAuth 2.0 if you want:
- API access delegation,
- “connect your calendar,”
- “allow this app to read your files,”
- access without needing to identify the user.
Practical advice
If you’re implementing sign-in today:
- use OIDC Authorization Code Flow with PKCE for browser/mobile apps,
- use OAuth 2.0 Client Credentials for service-to-service access,
- don’t use OAuth access tokens as proof of identity unless the provider explicitly documents that pattern.
Caveat
Some providers expose OAuth endpoints that are used for login, but under the hood they’re effectively using OIDC or a provider-specific identity scheme. If you’re building something standard and interoperable, choose OIDC.
If you want, I can also explain OAuth vs OIDC in one diagram or help you choose the right flow for your app type (SPA, mobile, backend web app, CLI, etc.).