Authentication establishes or verifies who or what is acting. Authorization determines whether that identity is permitted to perform a requested action on a resource. Authentication usually provides identity information that authorization can use, but successful authentication does not mean every subsequent action is authorized.
Key takeaways
- Authentication establishes or verifies who or what is acting.
- Authorization determines whether that identity may perform a requested action on a resource.
- Successful authentication does not authorize every action that follows.
- Runtime authorization evaluates protected requests using current policy and relevant context.
Authentication vs authorization at a glance
| Dimension | Authentication | Authorization |
| Primary question | Who or what is acting? | May this identity perform this action on this resource? |
| Typical inputs | Credentials, authenticators and identity assertions | Identity, requested action, resource, policy, entitlements and relevant context |
| Typical result | Identity established or verified | Allow, deny, constrain or require approval; may call for temporary access or revocation |
| Timing | Often when a user, workload or device establishes identity or a session | When access or a protected action is attempted |
| Relationship | Provides identity information that can inform authorization | Uses identity, policy and other relevant inputs to decide what is permitted |
What authentication does
Authentication establishes confidence in the identity of a user, workload, service account, device, AI agent or other actor. It answers a question such as: Who or what is making this request?
Authentication can rely on passwords, cryptographic credentials, certificates, tokens, authenticators or federated identity assertions. The specific method changes, but the security function is the same: establish or verify identity.
What authorization does
Authorization answers a different question: What is this identity allowed to do? A decision can evaluate the authenticated identity together with the requested action, target resource, policy, role or entitlement and relevant context.
Authorization can allow or deny the action, constrain its permitted scope, require approval or determine that temporary access should be granted or existing access revoked. An enforcement point then applies the resulting authorization decision. The important point is that knowing the identity is an input to authorization, not the authorization decision itself.
These functions are also distinguished in established access-control guidance. NIST SP 800-63B describes authentication as validating one or more authenticators used to claim a digital identity. NIST SP 800-162 describes access decisions based on the subject, requested operation, object, policy and relevant attributes.
Why authentication does not imply authorization
An identity can be valid and still be unauthorized for a particular action. A service account, for example, can authenticate successfully while lacking permission to call a particular API operation. Authentication establishes or verifies the actor’s identity; authorization evaluates whether the requested action should be permitted.
Where runtime authorization fits
Runtime authorization makes the current request part of the authorization decision. It evaluates whether a specific identity may perform a specific action on a specific resource under current policy and conditions.
Authentication often occurs when an actor signs in or a workload establishes identity or a session. Authorization may occur during sign-in and afterward whenever a protected action is attempted. A long-lived authenticated session can therefore contain many separate authorization questions.
This distinction is especially important when permissions assigned in advance are broader than what should be exercised for every task. Available permissions or privileges can inform the decision without automatically determining it. For sensitive access, the useful architectural question is not simply whether the actor is authenticated. It is whether the requested action is authorized and where that decision is enforced.
Example: authenticated developer, unauthorized action
A developer signs in successfully through the company’s identity provider. That authentication establishes the developer’s identity. The developer then requests a sensitive production change. Authorization evaluates whether that developer may perform that specific change on that resource under the applicable policy and context. The request can be denied even though authentication succeeded.
How authentication, authorization and access governance differ
Authentication and authorization are also distinct from access governance. Governance addresses questions such as who should have access, how access is reviewed and how identity and entitlement lifecycles are managed. Authorization determines whether a particular request is permitted.
The three-way distinction is covered in authentication vs authorization vs access governance.
How P0 Security fits
P0 Security doesn’t authenticate identities. It works with the identity provider that does. P0 uses that identity context to decide whether a sensitive action should be authorized when it’s attempted and, where supported, enforces the decision through the target system’s own permissions.
P0 determines whether the identities involved are authorized to take the requested action and enforces that decision before the action reaches the sensitive resource.
Frequently asked questions
Does authentication happen before authorization?
Often, because authorization needs to know which identity is acting. However, architectures vary, and the durable distinction is functional: authentication establishes or verifies identity while authorization determines whether the requested action is permitted.
Can a user be authenticated but not authorized?
Yes. Successful authentication establishes or verifies identity, but the user can still be denied access to a particular resource or action by authorization policy.
Is a login an authorization decision?
A login primarily establishes an authenticated identity or session. The system may also apply access policy during login, but that does not eliminate the need for authorization decisions for protected actions that occur afterward.
Summary
Authentication establishes or verifies who or what is acting. Authorization determines what that identity may do. Authentication can provide identity information to an authorization system, but successful authentication does not authorize every subsequent action. Runtime authorization applies that distinction to the current request by deciding whether a specific action on a specific resource should be permitted under current policy and conditions.