Visual RFC.
ALL RFCs / RFC 9700
Read the RFC ↗
RFC 9700 / ATTACKS & DEFENSES

Client as resource owner

23

An API can confuse a client identity with a user identity when both occupy the same identifier namespace.

RFC 9700 · § 4.15DEFENSE
3 / 3
03
Enforce the correct principal’s permissions.

A client identity does not become a user identity through a matching string.

Client as resource ownerAn API can confuse a client identity with a user identity when both occupy the same identifier namespace. Current state: Enforce the correct principal’s permissions..Client as resource ownerSame alternative · resource-server decisionClient applicationResource APItoken + principal contextPrincipal: application · no user involvementAuthorize only the app’s own permissionsUser-123 resources remain unavailable to this app

Key idea: Keep application and user identities distinct.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Where client IDs and user identifiers share a namespace, servers SHOULD NOT let clients choose claims that collide with real users.
  • If that influence cannot be avoided, the authorization server MUST provide other means to distinguish client-only tokens from user-involved tokens.
  • Resource authorization must respect which kind of principal a token represents.

In a client-credentials grant, sub can represent the application. In a user-involved grant, sub can represent the resource owner. The same raw string must not accidentally confer the same authority.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A key is different from permission.

An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

What changed
RFC 6749 § 4.4RFC 9700 § 4.15

The BCP adds defenses against confusing client-only token subjects with resource-owner identities.

Read the updated RFC section ↗

All chapters in RFC 9700

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗