| Internet-Draft | OAuth 2.0 RAR Metadata and Error Signali | January 2026 |
| Zehavi | Expires 23 July 2026 | [Page] |
OAuth 2.0 Rich Authorization Requests (RAR), as defined in [RFC9396], enables fine-grained authorization requests, using structured JSON objects.¶
While RAR [RFC9396] standardizes the exchange and handling of authorization details, it does not define a mechanism for clients to discover how to construct valid authorization details types.¶
This document defines a machine-readable metadata format for authorization servers to provide authorization details type documentation and JSON Schema [JSON.Schema] definitions, as well as interoperable discovery via OAuth Resource Server Metadata [RFC9728].¶
This document also defines a new WWW-Authenticate normative OAuth error code, insufficient_authorization_details, enabling resource servers to indicate inadequate authorization details as the cause of failure.¶
It also defines an OPTIONAL response body which MAY be returned alongside the insufficient_authorization_details error, providing an informative yet actionable authorization details object, which can be used directly in a subsequent OAuth request.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://yaron-zehavi.github.io/oauth-rich-authorization-requests-metadata/draft-zehavi-oauth-rar-metadata.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-zehavi-oauth-rar-metadata/.¶
Discussion of this document takes place on the Web Authorization Protocol Working Group mailing list (mailto:oauth@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/oauth/. Subscribe at https://www.ietf.org/mailman/listinfo/oauth/.¶
Source for this draft and an issue tracker can be found at https://github.com/yaron-zehavi/oauth-rich-authorization-requests-metadata.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 23 July 2026.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
OAuth 2.0 Rich Authorization Requests (RAR) [RFC9396] allows OAuth clients to request structured, fine-grained authorization, beyond the coarse-grained access offered by simple scopes, which has enabled advanced authorization models across many domains, such as open banking & API marketplaces.¶
However, RAR [RFC9396] does not specify how a client learns how to construct syntactically valid authorization details objects. As a result, clients must rely on out-of-band documentation or static ecosystem profiles, limiting interoperability and preventing dynamic client behavior.¶
This document addresses this gap by:¶
Defining a new authorization server endpoint: authorization_details_types_metadata_endpoint, providing metadata for authorization details types, including human-readable documentation as well as embedded JSON Schema definitions [JSON.Schema].¶
Adding accepted authorization details types to OAuth 2.0 Protected Resource Metadata [RFC9728] response, facilitating RAR metadata discovery.¶
Defining a standardized error signaling mechanism using the WWW-Authenticate response header, allowing resource servers to specify insufficient_authorization_details as the cause of error.¶
Defining an OPTIONAL response body, included with an insufficient_authorization_details error, providing an informative authorization details object, whose inclusion in a new OAuth request shall result, if approved, in an access token satisfying the endpoint's requirements.¶
The OPTIONAL providing of actionable authorization details objects by resource servers enables:¶
High interoperability and simplification by relieving clients from having to figure out how to construct valid authorization details objects, instead providing them with required authorization_details object, to be included in a subsequent OAuth request.¶
Support for including ephemeral, interaction-specific details originating from the resource domain, in the authorization details object, such as for example a risk score, a risk profile or an internal interaction identifier. Resource servers MAY use this to guide authorization servers as to the required authentication strength and consent flow.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
There are two main proposed flows:¶
This document specifies that the metadata attribute: authorization_details_types_supported, defined by RAR [RFC9396], shall be included as an OPTIONAL response attributes in Protected Resource Metadata [RFC9728].¶
Note: When resource servers accept access tokens from several authorization servers, interoperability is maintained as client can discover each authorization server' supported authorization details types.¶
The following is a non-normative example response with the added authorization_details_types_supported attribute:¶
HTTP/1.1 200 OK
Content-Type: application/json
{
"resource":
"https://resource.example.com",
"authorization_servers":
["https://as1.example.com",
"https://as2.example.net"],
"bearer_methods_supported":
["header", "body"],
"scopes_supported":
["profile", "email", "phone"],
"resource_documentation":
"https://resource.example.com/resource_documentation.html",
"authorization_details_types_supported":
["payment_initiation"]
}
¶
If encountering error insufficient_authorization_details, check if body.authorization_details exists and if provided MAY include in subsequent OAuth request.¶
Otherwise consult metadata:¶
Fetch resource metadata to discover accepted authorization servers and supported authorization_details types.¶
Fetch authorization server metadata to discover authorization_details_types_supported.¶
Fetch authorization server's authorization_details_types_metadata_endpoint to obtain metadata and schema¶
Locate schema or retrieve schema_uri.¶
Construct authorization details conforming to the schema and include in subsequent OAuth request.¶
Advertise in resource metadata authorization_details_types_supported, where relevant.¶
Verify access tokens against required authorization details.¶
If insufficient, return HTTP 403 with WWW-Authenticate: Bearer error="insufficient_authorization_details".¶
OPTIONALLY provide also an HTTP body with an informative actionable authorization_details object.¶
HTTP 403 responses with response bodies may be cached or replayed in unexpected contexts.
Recommended mitigation is resource servers SHALL use Cache-Control: no-store response header.¶
| Error Code | Description |
|---|---|
| insufficient_authorization_details | The request is missing required authorization details or the provided authorization details are insufficient. |
The metadata attribute authorization_details_types_metadata_endpoint is defined for OAuth authorization server metadata as a URL.¶
This section provides non-normative examples of how this specification may be used to support specific use cases.¶
Client uses access token obtained at login to call payment initiation API¶
POST /payments HTTP/1.1
Host: resource.example.com
Content-Type: application/json
Authorization: Bearer eyj... (access token from login)
{
"type": "payment_initiation",
"locations": [
"https://resource.example.com/payments"
],
"instructedAmount": {
"currency": "EUR",
"amount": "123.50"
},
"creditorName": "Merchant A",
"creditorAccount": {
"bic": "ABCIDEFFXXX",
"iban": "DE02100100109307118603"
}
}
¶
POST /payments HTTP/1.1
Host: resource.example.com
Content-Type: application/json
Authorization: Bearer eyj... (payment approval access token)
{
"type": "payment_initiation",
"locations": [
"https://resource.example.com/payments"
],
"instructedAmount": {
"currency": "EUR",
"amount": "123.50"
},
"creditorName": "Merchant A",
"creditorAccount": {
"bic": "ABCIDEFFXXX",
"iban": "DE02100100109307118603"
}
}
¶
-01¶
Authorization details moved to HTTP body and made OPTIONAL¶
Metadata pointer from resource metadata url, full authorization details types metadata on authorization server new endpoint¶
-00¶
Document creation¶