Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› OAuth 2.0 And OpenID Connect
Authentication, Authorisation & Trust

OAuth 2.0 And OpenID Connect

← Back to Glossary
By NHI Mgmt Group Updated October 23, 2026 Domain: Authentication, Authorisation & Trust

OAuth 2.0 and OpenID Connect are related identity standards used to let applications access resources and confirm who a user is. OAuth 2.0 authorizes delegated access with scoped tokens, while OpenID Connect adds authentication on top of OAuth 2.0 by issuing identity claims through an ID token.

How OAuth 2.0 and OpenID Connect Fit Together

OAuth 2.0 is the delegation layer: it lets a client obtain scoped access to a protected resource without taking the user’s password. openid connect adds an identity layer on top, so the application can also verify who the user is and receive standardized identity claims.

That distinction matters because OAuth alone answers “what can this client do?”, while OpenID Connect answers “who signed in?” When teams blur the two, they often build flows that authorize access correctly but leave authentication, session handling, or identity verification weak.

Core Building Blocks: Tokens, Claims, Scopes, and Clients

The practical mechanics are straightforward but easy to misunderstand. OAuth 2.0 centers on access tokens, scopes, resource servers, authorization servers, and client types. OpenID Connect adds an identity token, user info, and a discovery layer that helps applications validate the issuer and the authentication response.

Scopes limit what the client can ask for, but they do not describe the user’s identity. ID tokens are not authorization tokens, and access tokens should not be treated as proof that a user is authenticated. Keeping those token purposes separate prevents a common class of implementation mistakes.

For teams implementing the flows, the best starting point is the OAuth 2.0 and OpenID Connect Guide for Identity Teams, which covers roles, grant types, PKCE, scopes, tokens and client types.

Security Properties and Common Failure Modes

These standards are widely used because they remove password sharing, enable delegated access, and support federation across apps and identity providers. They also concentrate trust: a misconfigured redirect URI, weak client authentication, or overbroad scope can turn a legitimate sign-in flow into a path for account compromise or token theft.

OpenID Connect depends on a correctly trusted issuer, validated signatures, and careful audience and nonce handling. OAuth depends on strong client registration, correct redirect handling, and tight token audience controls. If any of those checks are skipped, attackers can replay tokens, abuse consent, or impersonate an application.

Implementation choices like client credentials, private key JWT, mTLS, and proof-of-possession tokens exist to strengthen the trust boundary around OAuth. They are especially important when the client is not a person but an application, API, or workload that must authenticate without a password.

For the underlying protocol baseline, see RFC 6749: The OAuth 2.0 Authorization Framework and OpenID Connect Core 1.0.

Where OAuth 2.0 and OpenID Connect Are Commonly Used

These standards appear in single sign-on, customer identity, enterprise SaaS, mobile apps, APIs, and machine-to-machine integrations. OAuth 2.0 is often the right choice when an app needs delegated API access, while OpenID Connect is the right choice when the app needs a standardized login experience and a verifiable identity assertion.

In modern architectures, they also underpin workload and service authentication, federation between platforms, and delegated access across trust domains. That is why they show up in identity providers, developer platforms, and automation systems as often as they do in end-user login flows.

When an application depends on both delegated access and verified sign-in, a hardened identity provider becomes part of the security boundary. Identity Provider and SSO Security Guide is useful here because it focuses on admin protection, phishing-resistant MFA, session and token security, and federation monitoring.

Risk and Threat Considerations

OAuth 2.0 and OpenID Connect are attractive targets because they sit at the point where authentication, consent, and token issuance intersect. If attackers can phish consent, steal tokens, abuse a client secret, or compromise an identity provider, they may gain durable access without ever learning a password.

Failure mechanism: Weak client registration, lax redirect validation, token replay, or stolen federation material lets an attacker turn a legitimate trust relationship into persistent access or unauthorized resource use.

Impact: The result can be mailbox access, API abuse, session hijacking, privilege escalation, and broad lateral movement across connected applications.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)OAuth and OIDC rely on strong user authentication before tokens are issued.
IA-5 — Authenticator ManagementOAuth client secrets, tokens, and related authenticators need lifecycle protection.
AC-6 — Least PrivilegeOAuth scopes and token audiences operationalize least-privilege access.
Recommendation — Enforce strong organizational user authentication before issuing federated tokens. Manage OAuth client secrets and related authenticators across their full lifecycle. Limit OAuth scopes and token audiences to the minimum required access.
OWASP ASVSV6 — AuthenticationOIDC is an authentication layer and its sign-in flows must be verified.
V10 — OAuth and OIDCThis chapter directly covers OAuth and OpenID Connect implementation requirements.
Recommendation — Verify issuer, nonce, and authentication response handling in OIDC flows. Implement OAuth and OIDC flows according to protocol security requirements.
CIS Controls v8CIS-5 — Account ManagementFederated login and token issuance depend on governed account and access lifecycles.
Recommendation — Govern federated accounts and revoke stale access promptly.

Practitioner Guidance

Why practitioners should care: Treat OAuth 2.0 and OpenID Connect as separate but related controls. Use OAuth when the need is delegated access, and require OpenID Connect when the application must verify user identity and consume identity claims.

What to watch for: The highest-risk mistakes are overbroad scopes, weak redirect URI handling, long-lived bearer tokens, shared client secrets, and implementations that confuse an ID token with an access token. Those are the places where a normal login flow becomes an account takeover path.

Practitioner takeaway: The safer deployment is the one that validates issuer, audience, and token purpose at every trust boundary, rather than assuming the login flow itself has already done that work.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org