Skip to content
IAM Insights

Briefing · Article · source · published · Boston Identity

Rich Authorization Requests need API-specific permission rules

The IETF's May 2023 OAuth extension gives clients a shared format for detailed permission requests. Each API still defines what those permissions mean and how to compare them. Issuing a token with reduced permissions leaves the user's earlier authorization in place.

RFC Editor · Torsten Lodderstedt, Justin Richer, Brian Campbell · May 1, 2023 · read

share
8,072 words. With Torsten Lodderstedt, author, yes.com; Justin Richer, author, Bespoke Engineering; Brian Campbell, author, Ping Identity.
01

What's happening

Finding4
BI-FIND-2023-0044Lead finding

RFC 9396 gives OAuth clients a shared format for detailed permission requests, whose type field identifies a permission structure defined for an API.

RFC 9396 gives OAuth clients a shared format for detailed permission requests: authorization_details is an array of objects whose required type field identifies a permission structure defined for an API. The RFC supplies reusable fields without requiring every type to use them. If a client also sends scope, the authorization server must combine the requests and present their merged requirements when gathering consent. Each API defines how the parameters combine, and deployments supply consent rendering. A type value need not point to a machine-readable schema.

high confidencebest source: independent researchobserved May 2023EvidenceSection 1Section 2Section 5
flag a problem with BI-FIND-2023-0044
BI-FIND-2023-0045

Under RFC 9396, requesting a token with reduced authorization_details leaves the resource owner's earlier authorization in place.

Requesting a token with reduced authorization_details leaves the resource owner's earlier authorization in place. The authorization server checks token requests against the underlying grant or client policy, but RFC 9396 supplies no general algorithm for comparing arbitrary detail objects: those rules belong to the API. Simple object comparison can misstate the resulting access rights. The token response must return granted details, though the server may omit values and enrich objects where the type definition allows.

high confidencebest source: independent researchobserved May 2023EvidenceSection 3
flag a problem with BI-FIND-2023-0045
Figure steps
  1. The client requests a token with fewer permissions than the resource owner previously authorized.
  2. The authorization server checks the request against the grant using permission-comparison rules defined for the API.
  3. The server issues a token with reduced permissions and returns granted details. The resource owner's previous authorization remains unchanged.
  4. The authorization server makes approved details available to the resource server for enforcement, for example in a JWT access token or an introspection response.
Fig. 1

A narrower access token leaves the user's earlier authorization intact, while the resource server receives the details it needs to enforce that token.

Drawn from RFC 9396, sections 6.1, 7 and 9Source dated May 1, 2023Passage: Section 3

Swipe for the full figure →

BI-FIND-2023-0046

RFC 9396 requires the authorization server to make approved authorization details available to the resource server for enforcement.

RFC 9396 requires the authorization server to make approved authorization details available to the resource server for enforcement. It may convey them in a JSON Web Token (JWT) or a token introspection response. For JWT access tokens, the RFC recommends a top-level claim filtered to the audience. If an introspection response includes details, they must appear in a top-level authorization_details member using the defined structure.

high confidencebest source: independent researchobserved May 2023Evidence§§9–10: Resource Servers and Metadata
flag a problem with BI-FIND-2023-0046
BI-FIND-2023-0047

RFC 9396 describes an attacker who puts encrypted request data into an authorization request on their own device and reads it decrypted on the consent screen.

Encrypted request data can still expose personal information through consent screens. RFC 9396 describes an attacker inserting that encrypted data into an authorization request on a device they control, then using the authorization server's consent display to see it decrypted. The RFC points to partial display and checks on the authenticated user context as possible countermeasures. Separately, the server must sanitize authorization_details against injection; clients must protect the details from tampering and swapping when their integrity is a concern.

high confidencebest source: independent researchobserved May 2023EvidenceSection 5
flag a problem with BI-FIND-2023-0047
02

Section by section

6

showing 6 of 6

[1]

§§1–2: Request Parameter "authorization_details"

Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity

Standards

The required type field tells the authorization server how to interpret each object in authorization_details. Common fields are reusable building blocks; an API need not use them all. Combining their values requests their product, while separate objects allow finer combinations. Payment amounts and file permissions are illustrative payloads.

technical artifactfrom published text

[2]

§§3–5: Authorization Request and Error Response

Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity

Standards

Clients can send scope alongside authorization_details. The authorization server must combine them and show merged requirements when gathering consent, using rules defined for the API. The resource parameter does not alter details processing. Unknown types and objects that fail their type definition must be rejected with invalid_authorization_details.

technical artifactfrom published text

[3]

§§6–8: Token Request, Comparison and Response

Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity

Standards

A token request is checked against the grant or client policy using API-specific permission rules. Reducing a token's access leaves earlier consent intact. Token responses must return granted details, though the server may omit values or enrich objects where the type permits. Account and medical-record enrichment are examples.

technical artifactfrom published text

[4]

§§9–10: Resource Servers and Metadata

Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity

Standards

Approved details must reach the resource server for enforcement. A JSON Web Token can carry them, with audience filtering recommended. Introspection responses can carry them too; if they do, they must use a top-level authorization_details member. Metadata advertises supported types, while type registration remains outside the specification.

technical artifactfrom published text

[5]

§§11–14: Implementation, Security, Privacy and IANA

Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity

Standards

Deployments supply consent rendering and type-specific processing. Clients must protect details from tampering or swapping if integrity is a concern; authorization servers must sanitize input. Encryption still leaves a consent-screen disclosure risk. The RFC advises sharing details according to local need-to-know policy and does not assume type identifiers resolve to schemas.

technical artifactfrom published text

[6]

Appendix A: OpenID Connect, Signing, Tax and eHealth Examples

Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity

Standards

Worked payloads cover OpenID Connect, document signing, tax and eHealth. The OpenID Connect type is explicitly hypothetical. In the eHealth example, the authenticated requester is not the patient; identity, role, organization and purpose inform authorization. These examples illustrate API requirements without establishing production deployments.

technical artifactfrom published text

Terms used

IETF
The body that writes the internet's protocol standards, including OAuth, JWT, and the workload-identity work known as WIMSE.
OAuth
The web's standard framework for delegated authorization — letting one application act at another on a user's (or machine's) behalf without sharing passwords.
Application programming interface
Application programming interface: a defined way for software components to request operations or exchange data.
Rich Authorization Requests
An OAuth extension that lets a client describe exactly what it wants authorized as structured data (e.g. which tool, which amount) instead of a single scope string, so an approver sees the specific action rather than a broad permission.
RFC
Request for Comments: the numbered document series in which the Internet Engineering Task Force publishes internet specifications, from standards such as RFC 8693 to informational notes. A draft is not an RFC.
Resource server
In OAuth, the API that holds the protected data and accepts access tokens.
JWT
A compact, signed token that carries claims (who, for what, until when) between systems. It is the usual shape of an OAuth access token.
OAuth Token Introspection
An OAuth extension (RFC 7662) letting a resource server ask the authorization server, at call time, whether a token is still valid and what it is bound to — instead of trusting the token's own claims at face value.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity