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
What's happening
Finding4RFC 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.
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.
flag a problem with BI-FIND-2023-0045
Figure steps
- The client requests a token with fewer permissions than the resource owner previously authorized.
- The authorization server checks the request against the grant using permission-comparison rules defined for the API.
- The server issues a token with reduced permissions and returns granted details. The resource owner's previous authorization remains unchanged.
- The authorization server makes approved details available to the resource server for enforcement, for example in a JWT access token or an introspection response.
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 →
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.
flag a problem with BI-FIND-2023-0046
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.
flag a problem with BI-FIND-2023-0047
Section by section
6showing 6 of 6
[1]§§1–2: Request Parameter "authorization_details"
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
Standards
§§1–2: Request Parameter "authorization_details"
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
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
§§3–5: Authorization Request and Error Response
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
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
§§6–8: Token Request, Comparison and Response
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
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
§§9–10: Resource Servers and Metadata
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
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
§§11–14: Implementation, Security, Privacy and IANA
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
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
Appendix A: OpenID Connect, Signing, Tax and eHealth Examples
Torsten Lodderstedt, yes.com · Justin Richer, Bespoke Engineering · Brian Campbell, Ping Identity
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
