Understanding OAuth 2.0, OpenID Connect, and the distinction between authentication, authorization and access — from a policy-first architectural perspective.
One of the most persistent sources of confusion in Identity and Access Management (IAM) is OAuth 2.0. Depending on whom you ask, it is described as an authentication protocol, an authorization protocol, or an access protocol.
Even experienced software developers and security professionals occasionally use these terms interchangeably.
Yet, from a security architecture perspective, these distinctions matter. Understanding them becomes particularly important as enterprises move towards API-driven applications, Zero Trust architectures and autonomous AI agents.
Let us examine OAuth by starting not with the protocol, but with something more fundamental: the security policy.
Q. Is OAuth 2.0 an authentication protocol?
No. OAuth 2.0 is fundamentally an authorization framework.
The official specification, RFC 6749, defines a framework that enables applications to obtain limited access to protected resources.
OAuth does not standardize how a user proves their identity. It does not prescribe passwords, biometrics, passkeys, digital certificates or multifactor authentication.
Instead, it provides a standardized mechanism through which an application can obtain and exercise authorized access.
Q. Why, then, is OAuth so frequently associated with authentication?
Consider what happens when you visit a website and click a button that says:
- Sign in with Google
- Sign in with Microsoft
- Sign in with Apple
You are redirected to an identity provider, where you authenticate yourself. You may enter a password, use a passkey or complete an MFA challenge.
You are then redirected back to the original application, where you find yourself logged in.
From a user’s perspective, this entire experience appears to be OAuth authentication.
However, in a standards-based OpenID Connect implementation, two logically distinct operations are taking place:
- Authentication: Establishing the user’s identity.
- Authorization: Granting the client application access to protected resources.
The fact that these operations can occur within the same browser-based flow is largely responsible for the confusion.
Q. If OAuth is not an authentication protocol, what is?
Several established protocols and mechanisms address authentication.
| Protocol | Primary purpose |
|---|---|
| OpenID Connect (OIDC) | Federated authentication using identity tokens |
| SAML 2.0 | Enterprise identity federation using assertions |
| Kerberos | Ticket-based network authentication |
| WebAuthn / FIDO2 | Public-key-based, phishing-resistant authentication |
| Mutual TLS (mTLS) | Certificate-based authentication |
| LDAP Bind | Directory-based authentication |
Of these, OpenID Connect is particularly relevant to our discussion because it is built on top of OAuth 2.0.
OAuth provides the underlying authorization framework. OpenID Connect adds a standardized identity layer.
This close relationship further contributes to the confusion between the two.
Q. Can we understand authentication and authorization by starting with a policy?
Absolutely. In fact, this is arguably a more intuitive approach for security architects.
Consider a typical Google Cloud IAM policy binding:
bindings:
- role: roles/storage.objectViewer
members:
- user:[email protected]
Assume this policy is attached to a Cloud Storage bucket.
The policy binds a member to a role within a particular resource scope.
It establishes that Alice is entitled to read objects in that bucket, subject to other applicable IAM controls.
However, the policy does not tell us:
- How Alice proves her identity.
- Whether Alice must use multifactor authentication.
- Whether an application can access the bucket on her behalf.
- How that application obtains an access credential.
- How long that credential remains valid.
These are separate architectural concerns.
Starting with policy allows us to understand precisely where authentication, authorization and OAuth fit.
Q. What is the difference between authentication, authorization and access?
| Concept | Fundamental question |
|---|---|
| Policy | What should be permitted? |
| Authentication (AuthN) | Who are you? |
| Authorization (AuthZ) | Are you permitted to perform this operation? |
| Delegated authorization (OAuth) | Can an application exercise specific permissions on your behalf? |
| Access | Can the requested operation actually be performed? |
Authentication establishes a trusted identity.
Authorization evaluates that identity and the requested operation against applicable policies.
OAuth provides a mechanism for granting and exercising constrained access through tokens.
These are complementary functions, not interchangeable ones.
Q. Why is OAuth also referred to as an access protocol?
Because OAuth bridges the gap between an authorization grant and the ability to exercise that grant.
Suppose Alice is authorized to read financial reports stored in Google Cloud Storage.
Now suppose she wants a third-party financial analysis application to read those reports on her behalf.
Should she provide the application with her Google password?
Certainly not.
Instead, the application can obtain an OAuth access token that permits a limited set of operations.
The application presents this token when calling the Cloud Storage API.
The API validates the token and evaluates the applicable resource permissions before allowing the operation.
OAuth therefore enables access without requiring the application to possess the user’s original authentication credentials.
Calling it an access protocol is understandable, although authorization framework remains the more technically accurate description.
Q. Does OAuth replace IAM policies?
No. This is one of the most important architectural distinctions.
Suppose Alice has the following Google Cloud IAM role:
roles/storage.objectAdmin
This role includes permissions to read, create and delete storage objects.
However, a third-party application obtains an OAuth access token with the following scope:
The application is restricted to read-only operations, even though Alice herself has broader IAM permissions.
| Operation | IAM permits | OAuth scope permits | Effective access |
|---|---|---|---|
| Read objects | Yes | Yes | Allowed |
| Create objects | Yes | No | Denied |
| Delete objects | Yes | No | Denied |
The reverse is also true. An OAuth token with a broad storage scope does not automatically grant permissions that the underlying principal lacks.
In this simplified delegated-access model, effective permissions are the intersection of the underlying IAM permissions and the permissions permitted by the OAuth token.
Effective permissions = IAM permissions ∩ OAuth scope permissions
Additional security controls and contextual conditions may further restrict access.
OAuth does not replace the underlying IAM policy. It provides another layer of authorization constraints.
Q. What exactly is an OAuth authorization server?
An authorization server is the component responsible for issuing access tokens after evaluating the applicable authorization grant requirements.
Actual examples include:
| Product | Functionality |
|---|---|
| Microsoft Entra ID | OAuth and OIDC token issuance |
| Okta | Configurable authorization servers, scopes and access policies |
| Auth0 | API authorization and identity management |
| Keycloak | Open-source OAuth, OIDC and SAML services |
| Google Identity | OAuth authorization and token issuance for Google APIs |
Interestingly, many of these products also function as identity providers.
Microsoft Entra ID, for example, can authenticate a user, enforce authentication requirements, issue an OIDC ID token and issue an OAuth access token.
Although these functions are performed by the same product, they represent different security responsibilities.
Q. Does the authorization server make the final authorization decision?
Not necessarily.
In a typical OAuth architecture, there are two distinct authorization decisions.
The first decision: Should this application receive an access token with the requested permissions?
This is the responsibility of the authorization server.
The second decision: Should this particular operation on this particular resource be permitted?
This is the responsibility of the resource server and its associated authorization mechanisms.
For example, Microsoft Entra ID may issue an access token for Microsoft Graph. Microsoft Graph must still validate the token and enforce the applicable permissions and resource-level restrictions.
Possessing a valid access token does not guarantee unrestricted access to the target resource.
Q. What is the difference between an OAuth access token and an OIDC ID token?
This distinction is central to understanding why OAuth and authentication are frequently confused.
An illustrative OIDC ID token might contain:
{
"iss": "https://identity.example.com",
"sub": "alice-123",
"aud": "financial-reporting-app",
"email": "[email protected]",
"amr": ["pwd", "otp"]
}
The ID token communicates information about the authenticated user to the client application.
An illustrative JWT-formatted OAuth access token might contain:
{
"iss": "https://identity.example.com",
"sub": "alice-123",
"aud": "financial-reporting-api",
"scope": "reports.read"
}
The access token represents the access granted to the client for the target API.
| ID token | Access token | |
|---|---|---|
| Standard | OpenID Connect | OAuth 2.0 |
| Primary purpose | Authentication | Authorized access |
| Intended recipient | Client application | Resource server |
| Typical information | Identity claims | Scopes or other access-related claims |
These are abbreviated, illustrative token payloads. Actual tokens require additional claims and validation, and OAuth access tokens need not be JWTs.
An application should not simply treat an OAuth access token as proof that a particular user has authenticated to that application. That is the responsibility of an authentication protocol such as OpenID Connect.
Q. Does authentication itself require a policy?
Yes. And this brings us back to the policy-first approach to security architecture.
An enterprise might define three distinct categories of security policies:
| Policy category | Example |
|---|---|
| Authentication policy | Administrators must use phishing-resistant MFA |
| Delegation policy | Third-party applications may obtain only approved read-only scopes |
| Resource authorization policy | Members of the FinanceReader role may read confidential financial reports |
Each policy governs a different aspect of the access lifecycle.
Authentication is not simply about establishing who someone is. It is also about establishing the required level of assurance in that identity.
An authenticated user may still be denied access because their authentication method does not satisfy the security requirements of a particular resource.
Q. Why does this distinction matter even more in the age of AI agents?
Consider an enterprise AI agent that can read financial records, query databases, call SaaS APIs and execute business transactions.
A human user authenticates and instructs the agent to analyze quarterly financial reports.
Should the agent automatically inherit all the user’s permissions?
What if the user is also authorized to delete those reports, modify financial records or initiate payments?
The agent has no legitimate reason to exercise those permissions for a read-only analysis task.
A properly designed delegated authorization architecture should distinguish between:
- The human user’s underlying permissions.
- The AI agent’s own identity and permissions.
- The permissions delegated to the agent.
- The permissions required for the specific task.
The agent’s effective access should be constrained by the intersection of the applicable permissions and task-specific restrictions.
This is where OAuth becomes particularly valuable in agentic AI architectures.
Scoped access tokens, short-lived credentials, token exchange and workload identities can help prevent an AI agent from inheriting an unnecessarily broad security context.
OAuth alone, however, does not guarantee least privilege. Enterprises must still design appropriate delegation policies, resource-level authorization and enforcement mechanisms.
Conclusion — Start with the policy, not the protocol
The confusion surrounding OAuth arises partly because we tend to learn identity and access management by studying individual protocols rather than the security architecture that those protocols support.
A policy-first approach provides a clearer mental model.
Policy defines the entitlement.
Authentication establishes the identity.
OpenID Connect communicates the authenticated identity.
OAuth enables constrained, authorized access.
The resource server enforces the final authorization decision.
OAuth is not a replacement for authentication. Nor is it a replacement for enterprise IAM policies.
It is a standardized mechanism for granting and exercising authorized access to protected resources.
As enterprises increasingly delegate business operations to AI agents, understanding this distinction is no longer merely a matter of technical terminology. It is a fundamental security architecture requirement.
Anuj Varma writes about enterprise architecture, artificial intelligence, identity management and cybersecurity at anuj.com.
AI & Security — Behind the Cyber Headlines.