Join our Newsletter — 33% off our NHI Course
Home› Glossary› OAuth 2.0

OAuth 2.0

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026

OAuth 2.0 is the industry-standard authorisation framework that lets applications obtain limited, scoped access to user accounts or services via access tokens, without exposing credentials. It is an authorisation framework, not an authentication protocol; OpenID Connect adds authentication on top. It is widely used for modern NHI integrations.

How OAuth 2.0 Works

OAuth 2.0 defines the delegation model that lets a client request limited access to a protected resource on a user's or service's behalf. Its core design separates authorization from authentication, so the framework answers “what can this client do?” rather than “who is the user?” That distinction is fundamental to secure integration design.

The protocol centres on scopes, access tokens, consent, and clearly defined roles such as resource owner, client, authorization server, and resource server. In practice, the security value comes from narrowing access to only the permissions an application needs, instead of handing over credentials or broad account control.

For the specification itself, RFC 6749: The OAuth 2.0 Authorization Framework remains the canonical reference for the framework's roles and grant types.

Where OAuth 2.0 Fits in Modern Identity and API Access

OAuth 2.0 is now a common control plane for application-to-application access, delegated user access, and non-human identity integrations. It is widely used where a system needs constrained access without sharing passwords, which is why it appears in API ecosystems, cloud integrations, workload authentication patterns, and agent-to-service access flows.

That broad adoption also means the real security question is often not whether OAuth is present, but how it is implemented. Client type, redirect handling, token audience, token lifetime, consent scope, and secret handling all shape whether the deployment actually enforces least privilege or merely gives the appearance of it.

For teams working through machine and workload access patterns, NHI Authentication Guide covers how OAuth client credentials and related mechanisms are used in non-human authentication.

OAuth 2.0 and OpenID Connect

OAuth 2.0 is not itself an authentication protocol. OpenID Connect adds an identity layer on top of OAuth 2.0 by introducing ID tokens and standardising how a client can verify user authentication. That distinction matters because many implementation errors come from treating an access token as proof of identity when it was only issued for authorization.

Used correctly, OAuth supports delegated access to an API or service, while OpenID Connect supports sign-in and identity assertions. Many modern platforms combine the two, but the security properties are different, so teams should be precise about which token is being used for which purpose.

For a concise identity-focused overview, Ultimate Guide to NHIs — What are Non-Human Identities explains where OAuth tokens sit in a wider identity model.

For the authentication layer layered on top of OAuth, OpenID Connect Core 1.0 defines how identity tokens and authentication claims are handled.

Security Properties and Common Failure Modes

OAuth improves security when it replaces shared credentials with scoped tokens, but the framework only works as intended when tokens are protected, audiences are constrained, and the client is registered and authenticated correctly. Weak redirect URI handling, token leakage, excessive scopes, and poor consent hygiene can turn a delegation protocol into a persistence path for attackers.

Sender-constrained tokens and stronger client authentication reduce the value of a stolen token, while audience restriction helps stop token reuse against the wrong resource. By contrast, bearer tokens without compensating controls are easy to replay if they are exposed in logs, browser contexts, or poorly protected integrations.

For current security guidance, RFC 9700: Best Current Practice for OAuth 2.0 Security is the most relevant IETF document for hardening deployments.

Related hardening mechanisms include RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens, RFC 9449: OAuth 2.0 Demonstrating Proof of Possession (DPoP), and RFC 8693: OAuth 2.0 Token Exchange, which address client binding, replay resistance, and delegated access patterns.

Risk and Threat Considerations

OAuth 2.0 deployments are attractive to attackers because a stolen token can provide direct access without the original password. Consent phishing, malicious OAuth apps, token theft, and overbroad delegated access can all turn a legitimate trust relationship into durable unauthorized access.

Failure mechanism: Weak consent controls, exposed tokens, or poor client authentication let an attacker reuse granted access, impersonate a client, or pivot into a service that trusts the token more than the user.

Impact: The result can be mailbox access, API abuse, data exfiltration, persistence across sessions, and lateral movement through connected services, especially when refresh tokens or long-lived grants are involved.

Standards & Framework Alignment

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

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationOAuth tokens and client auth determine API authentication strength.
Recommendation — Harden OAuth client authentication and validate token handling to prevent broken authentication paths.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementOAuth deployments depend on secure lifecycle handling of secrets, tokens, and client authenticators.
IA-9 — Identification and Authentication (Non-Organizational Users)OAuth is widely used for service and workload access by external or non-organizational actors.
AC-3 — Access EnforcementOAuth scopes and token audiences enforce what an app may access.
Recommendation — Manage OAuth client secrets and tokens with controlled issuance, storage, rotation, and revocation. Apply strong authentication requirements to OAuth-enabled non-organizational clients and services. Enforce least-privilege authorization by mapping OAuth scopes to explicit access policies.
CIS Controls v8CIS-6 — Access Control ManagementOAuth is an access delegation mechanism that needs governed granting and revocation.
Recommendation — Control OAuth grants, scopes, and revocation processes as part of access governance.

Practitioner Guidance

Why practitioners should care: OAuth 2.0 is not “safe by default”; its security depends on how scopes, clients, redirects, and token handling are implemented. Treat the framework as a delegation control that must be designed, not just enabled.

Common misunderstanding: A valid access token does not prove user authentication, and an OAuth integration is not automatically secure because it uses a standard. Use OpenID Connect when you need sign-in semantics, and validate token audience, issuer, and lifetime for every deployment.

Practitioner takeaway: Review OAuth implementations as access architecture, not just application wiring, and prefer stronger client authentication and sender-constrained tokens wherever the threat model justifies them.

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 November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org