---
title: What is per-user OAuth?
type: glossary
url: https://agentsfordevs.com/glossary/per-user-oauth
markdown: https://agentsfordevs.com/glossary/per-user-oauth.md
publisher: Agents for Devs
author: Agents for Devs desk
reviewed_by: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: Agents for Devs. "What is per-user OAuth?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/per-user-oauth
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/glossary/per-user-oauth
term: Per-user OAuth
aliases:
  - per-user authorization
  - user-delegated OAuth
---

# What is per-user OAuth?

Per-user OAuth is the pattern in which an agent reaches each MCP server or downstream API with an OAuth token issued for the specific user it is acting for, rather than with a credential shared across users.

**Definition:** Per-user OAuth is the pattern in which an agent reaches each MCP server or downstream API with an OAuth token issued for the specific user it is acting for, rather than with a credential shared across users.

```http
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource",
                         scope="files:read"
```

A protected MCP server answers an unauthenticated call with that `401` (example from MCP spec version 2026-07-28). The client follows `resource_metadata` to the authorization server, the user signs in, and the client gets a token for that user, bound to that server. The spec describes the client as acting "on behalf of a resource owner." That is per-user OAuth, though the spec never uses the phrase.

The payoff is that the downstream system's own permissions apply. If a user can't see a repository, their agent can't either, and the logs name the person. OWASP gives the same advice in LLM06:2025 Excessive Agency: have extensions execute in the user's own context, with OAuth tokens held to the minimum scope.

Behind a gateway or proxy there are two legs, and each needs its own per-user token; forwarding the first one downstream is token passthrough. When no user is present, as in CI, MCP's OAuth Client Credentials extension lets the client authenticate as itself. The Enterprise-Managed Authorization extension moves per-server consent to the company's identity provider.

**See also:** [Token passthrough](/glossary/token-passthrough) · [Agent identity](/glossary/agent-identity) · [MCP authorization step by step](/guides/mcp-oauth-flow) · [Why MCP servers must not forward client tokens](/guides/token-passthrough)

## Sources

1. [Authorization (MCP specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)
2. [OAuth Client Credentials, Model Context Protocol](https://modelcontextprotocol.io/extensions/auth/oauth-client-credentials)
3. [Enterprise-Managed Authorization, Model Context Protocol](https://modelcontextprotocol.io/extensions/auth/enterprise-managed-authorization)
4. [LLM06:2025 Excessive Agency, OWASP Gen AI Security Project](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/)

## Changelog

- 2026-12-06: First published.

## Cite this page

Agents for Devs. "What is per-user OAuth?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/per-user-oauth

- Page: https://agentsfordevs.com/glossary/per-user-oauth
- Markdown: https://agentsfordevs.com/glossary/per-user-oauth.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
