Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› On-Behalf-Of Authentication
Authentication, Authorisation & Trust

On-Behalf-Of Authentication

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

On-Behalf-Of Authentication is a delegated authentication flow where one application obtains a token to call another service for a signed-in user. The downstream service sees the user identity with scoped delegation, while the first application acts as the intermediary and does not reuse the user’s original credential directly.

What On-Behalf-Of Authentication Does

On-behalf-of authentication is a delegation pattern, not a second sign-in. One application obtains a token that represents a signed-in user and passes that delegated authority to a downstream service, so the service can act with user context while the intermediary never reuses the user’s original credential directly.

This pattern is common when a front-end, API, or orchestration service must call another system after a user has already authenticated. The important distinction is that the downstream service trusts a scoped token, not a password, session cookie, or raw credential forwarded from the first app.

How Delegation and Token Exchange Work

In practice, on-behalf-of flows depend on explicit trust between components, plus a token exchange or assertion mechanism that narrows what the intermediary is allowed to do. That usually means the original user identity is preserved, but the second service only receives the claims and scopes needed for the next hop.

That separation matters because the intermediary becomes a policy enforcement point. If it can request more privilege than intended, the downstream service may see a user identity that appears legitimate while the effective permissions are broader than the original user session should have allowed.

For standards-based implementations, the delegation model is described by RFC 8693: OAuth 2.0 Token Exchange, which is the clearest reference point for token exchange in on-behalf-of and agent-style delegation flows.

Where On-Behalf-Of Authentication Is Used

This pattern appears in API gateways, microservices, enterprise apps, SaaS integrations, and AI or automation systems that need to act for a user without collecting or replaying the user’s direct credential. It is especially useful when a service must call multiple backend resources and each backend needs to know who initiated the action.

It also shows up in identity-aware platforms that use federation, client credentials, certificate-bound authentication, or workload identity alongside user context. The common theme is controlled delegation: the intermediary proves its own identity, then requests a token representing the user’s delegated authority for a specific downstream action.

Because the model preserves user context across hops, it is often easier to audit than ad hoc credential sharing. But that benefit only holds when scopes, audiences, and token lifetimes are tightly constrained and the service chain is designed to reject overbroad delegation.

For broader background on the token, trust, and authority model behind this pattern, NIST SP 800-63 Digital Identity Guidelines is a useful companion reference for authenticator strength and identity assurance concepts.

Security Properties and Failure Modes

The main security value of on-behalf-of authentication is that it avoids credential forwarding and limits what each hop can do. That reduces exposure of the original user secret, but it introduces a new trust boundary around token issuance, audience restriction, and scope translation.

Common failure modes include over-scoped delegated tokens, weak audience validation, confused-deputy behavior, token replay, and acceptance of a token in a context it was never meant for. If the intermediary is compromised, the attacker may inherit the delegated authority of active sessions rather than needing the user’s password.

Because the pattern depends on service-to-service trust, it benefits from explicit control mapping. In enterprise control terms, the most relevant guidance sits in NIST SP 800-53 Rev 5 Security and Privacy Controls, especially the access control, identification, authentication, and audit families that govern delegated access and traceability.

Implementation and Governance Considerations

The governance question is not whether delegation exists, but who is allowed to delegate, to which downstream audience, and under what conditions. Teams should treat on-behalf-of flows as privileged architecture decisions, because they shape how user intent, service identity, and authorization are preserved across systems.

In well-run environments, the design should define token lifetime, claims content, consent or approval boundaries, and logging for each exchange. That makes it possible to distinguish legitimate delegated action from abuse, especially when the intermediary service is itself a high-value target.

Where implementation guidance is needed, OpenID Connect Core 1.0 helps frame how identity assertions are layered on top of OAuth-based flows, and RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens shows how to harden the client side of delegated token use.

Risk and Threat Considerations

On-behalf-of authentication concentrates trust in the intermediary application and the token service, so compromise of either can turn a limited delegation path into a broad impersonation path. The risk is highest when delegated tokens are long-lived, loosely scoped, or accepted by multiple backends without tight audience checks.

Failure mechanism: An attacker who compromises the intermediary, steals a delegated token, or abuses an over-permissive exchange can act with the user’s delegated authority and move laterally into downstream services that trust the token.

Impact: The result can be unauthorized data access, action fraud, privilege expansion, session abuse, and difficult-to-trace activity because the downstream service still sees a seemingly valid user context.

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 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-3 — Access EnforcementDelegated tokens still require enforced access decisions at each downstream service.
IA-2 — Identification and Authentication (Organizational Users)User identity remains central to the on-behalf-of delegation path.
IA-9 — Service Identification and AuthenticationThe intermediary and downstream services must authenticate each other in delegated flows.
Recommendation — Enforce access rules on each delegated call so downstream services only honor approved actions. Authenticate the user before any delegated token is issued or accepted. Require service-to-service authentication so delegated tokens are only accepted from trusted callers.
OWASP ASVSV10 — OAuth and OIDCOn-behalf-of flows are built on OAuth/OIDC token handling and delegation behavior.
Recommendation — Verify token audience, issuer, and delegation handling in OAuth/OIDC flows.

Practitioner Guidance

Governance implication: Treat on-behalf-of flows as explicitly approved delegation paths, not as a convenience feature added inside application code. Ownership should cover who may exchange tokens, which audiences are valid, and what claims must be preserved or stripped.

What to watch for: Review any design that reuses broad scopes, allows token forwarding across many services, or cannot explain why a downstream service needs user context at all. Those are common signs that delegation has drifted into implicit privilege.

Practitioner takeaway: The safest on-behalf-of design is the one that proves user context without ever exposing the original credential and without letting delegation become a hidden privilege path.

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