Internet-Draft oauth-cimd-sw-stmt-issuance October 2026
McGuinness Expires 30 April 2027 [Page]
Workgroup:
Web Authorization Protocol
Internet-Draft:
draft-mcguinness-oauth-cimd-sw-stmt-issuance-latest
Published:
Intended Status:
Standards Track
Expires:
Author:
K. McGuinness
Independent

CIMD Software Statement Issuance

Abstract

RFC 7591 defines how a client presents a software statement and how a registration endpoint consumes it, but not how the client obtains one. This specification defines OAuth 2.0 flows for issuing a software statement to a client identified by a Client ID Metadata Document and not registered with the authorization server.

A client holding an initial access token that authorizes issuance, or a statement it can renew, uses OAuth 2.0 Token Exchange (RFC 8693) without a redirect. Any client can instead use a redirect flow: the authorization endpoint returns a short-lived software_statement_code, which the client redeems through a new token endpoint grant. In both flows, a completed decision returns a statement, and a pending decision uses Deferred Token Response and polling. The statement never appears in an authorization response URL.

The client presents the statement at registration or at runtime, or publishes it for servers to pull; a companion specification defines the statement, its validation, and its consumption.

Status of This Memo

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 30 April 2027.

▲

Table of Contents

1. Introduction

[RFC7591] standardizes the consumption of a software statement, a signed JWT asserting client metadata (Section 2.3 of [RFC7591]), but not its issuance. Issuance today relies on manual provisioning or proprietary processes. The UK Open Banking Directory [UK-OPEN-BANKING] and the Australian Consumer Data Right Register [AU-CDR] each built a central issuer, yet a client needs a separate integration for each.

[STATEMENT] profiles that statement to carry no client metadata and instead vouch for the exact octets of a Client ID Metadata Document, and defines its validation and consumption. This document defines how a client obtains one, through OAuth token exchange (Section 5) or a redirect flow (Section 6). An issuer whose review outlives a request can defer it under [DTR].

A statement makes one issuer's decision portable to the authorization servers in its audience that trust the issuer ([STATEMENT]). If the trust decision is local to one authorization server, an initial access token [RFC7591], pre-registration [CIMD], or approval-based registration [APPROVAL-DCR] can establish the client directly.

Approval workflow, approver identity, external approval integration, acceptance of any particular issuer, and issuer discovery are out of scope.

2. Conventions and Definitions

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.

This specification uses terminology defined in [RFC6749], [RFC7591], [CIMD], and [DTR]. The terms Issuer, Trusting Authorization Server, Metadata Digest, Effective Expiry, Establishment, and Refusal Record are defined by [STATEMENT].

This specification defines the following terms:

Software Statement Request:

An authorization request with response_type=software_statement_code, asking the authorization server to issue a software statement (Section 6).

Software Statement Code:

The short-lived, single-use artifact returned by the software statement code response (Section 7.1) and redeemed at the token endpoint (Section 8).

Originating Request:

A request that can produce a software statement: a software statement code redemption (Section 8) or a token exchange (Section 5). Each yields a statement, a terminal denial, or, at a deferred issuer, a deferral.

Metadata Snapshot:

The exact retrieved octets of a validated Client ID Metadata Document, and their metadata digest, bound to a request, as defined in Section 4.1.

3. Protocol Overview

A client that holds an initial access token authorizing issuance, or a statement it can renew, uses token exchange at the token endpoint without a user agent (Section 5). Any client can instead initiate the redirect flow at the authorization endpoint (Section 6) and redeem the resulting software statement code at the token endpoint.

The issuer fetches and snapshots the client's Client ID Metadata Document (Section 4.1), decides whether to issue, and signs the statement. The client carries the statement to trusting authorization servers in its audience, at registration ([REGISTRATION]) or at runtime ([STATEMENT]). A publisher's backend acting for a client is not a party this specification authenticates. Issuance that such a backend authorizes on a client's behalf is out of scope.

                +--------------------------+
                | Client ID Metadata       |
                | Document (client_id URL) |
                +--------------------------+
                  ^                      ^
            hosts |                      | fetches and
                  |                      |   snapshots
+----------+      |                      |      +---------------+
|          +------+                      +------+    Issuing    |
|  Client  |                                    | Authorization |
|          |--(1) software statement request -->|    Server     |
|          |<-(2) software statement -----------|   (approval)  |
+----------+      (signed JWT)                  +---------------+
     |
     | (3) RFC 7591 registration request
     |     carrying the software statement
     v
+---------------+  +---------------+       +---------------+
|   Trusting    |  |   Trusting    |  ...  |   Trusting    |
| Authorization |  | Authorization |       | Authorization |
|   Server 1    |  |   Server 2    |       |   Server M    |
+---------------+  +---------------+       +---------------+

3.1. Redirect Flow Overview

+--------+                                  +----------------------+
| Client |                                  | Authorization Server |
+--------+                                  +----------------------+
    |                                                 |
    | (A) Authorization request                       |
    |     response_type=software_statement_code       |
    |     client_id=<metadata document URL>           |
    |     code_challenge, [audience], [dpop_jkt]      |
    |------------------------------------------------>|
    |                                                 |
    | (B) Software statement code response            |
    |     (software_statement_code, state, iss)       |
    |<------------------------------------------------|
    |                                                 |
    | (C) Redemption                                  |
    |     (software_statement_code, code_verifier,    |
    |      completion_mode=deferred)                  |
    |------------------------------------------------>|
    |                                                 |
    | (D) Software statement response or              |
    |     deferred response (deferral_code)           |
    |<------------------------------------------------|
    |                                                 |
    | (E) Poll(s) (deferral_code), if deferred        |
    |------------------------------------------------>|
    |     authorization_pending or final response     |
    |<------------------------------------------------|

At (A), the authorization server validates the request, performs any user-agent interaction or initiates an approval workflow, and returns a software statement code at (B).

At (C), the client redeems the code with its PKCE verifier. The response at (D) carries the statement or a [DTR] deferral_code, with which the client polls at (E). Errors follow [RFC6749] and [DTR].

4. Client Identification and Authentication

The client_id in every request defined by this specification MUST be a client identifier URL conforming to [CIMD]. The authorization server MUST obtain and validate the corresponding Client ID Metadata Document according to [CIMD].

In the redirect flow, a client identifier whose metadata document cannot be retrieved or validated, including a document rejected for duplicate member names (Section 4.1), is invalid for the purposes of Section 4.1.2.1 of [RFC6749]. If the client identifier or redirection URI is missing or invalid, the authorization server MUST NOT redirect the user agent.

The client authenticates to the token endpoint using the token_endpoint_auth_method and related key metadata in its Client ID Metadata Document. The authorization server classifies the client from that member:

Classification uses the singular token_endpoint_auth_method. A list of declared supported methods is not interpreted.

A public client binds its requests with DPoP [RFC9449]: in the redirect flow through dpop_jkt (Section 6), and in the token exchange profile (Section 5) by a DPoP proof, which a public client MUST include on the exchange request. A confidential client MAY use DPoP in addition to its client authentication method.

4.1. Metadata Snapshot

Client metadata documents can change while a request is pending. Before returning a software statement code or a deferral code, the authorization server MUST bind it to the exact octets of the document it retrieved and validated, and to their metadata digest ([STATEMENT]). The bound octets constitute the metadata snapshot for the request.

The authorization server MAY retrieve the document again before issuing the software statement. If it does so and the digest differs, it MUST either re-evaluate the request under the new document, binding it as the snapshot, or reject the request. This applies even if the change touches no member its policy examines. A statement over a superseded snapshot fails at registration ([REGISTRATION]).

The authorization server MUST NOT silently combine values from different document versions. An approval recorded against a superseded snapshot does not carry forward without a fresh issuance-policy decision.

Replacing the snapshot does not alter the sender-constraint context fixed for a deferral at origination (Section 9). If a replacement snapshot no longer authorizes the key material behind that context, for example because the client-authentication key is absent from the new document, the authorization server MUST invalidate the deferral. The client then makes a new request under its current keys.

The authorization server MUST reject duplicate object member names. Parsers can interpret duplicate members differently despite an identical digest.

A document carries its keys inline through jwks, which the digest binds, or by reference through jwks_uri, which it binds only as a location. [STATEMENT] weighs the trade-off, and an issuer can require either.

[CIMD] permits a document to carry a software_statement member. An issuer evaluates the document as served and MUST NOT refuse a document because it carries the member. Consumers ignore a statement embedded there ([STATEMENT]), and refusing would leave a client that published its statement unable to renew it.

5. Token Exchange Profile

A client that already holds a token carrying issuance authority MAY exchange that token for a statement using OAuth 2.0 Token Exchange [RFC8693] instead of the redirect flow (Section 6).

The client sends a token exchange request as defined in Section 2.1 of [RFC8693], with the following parameters:

requested_token_type:

REQUIRED. The value MUST be urn:ietf:params:oauth:token-type:software-statement.

subject_token and subject_token_type:

REQUIRED. One of the following:

  • First issuance. An initial access token, presented with a subject_token_type of urn:ietf:params:oauth:token-type:access_token: an authorization credential issued out of band by this authorization server that pre-authorizes software statement issuance, analogous to the initial access token of [RFC7591]. The credential itself is deployment-defined.

  • Renewal. A software statement this authorization server previously issued for the same sub, presented with a subject_token_type of urn:ietf:params:oauth:token-type:software-statement (Section 5.1).

client_id:

REQUIRED. The client identifier URL described in Section 4.

audience:

OPTIONAL. The requested audience, with the syntax, validation, and narrowing rules of the audience authorization request parameter (Section 6). On renewal (Section 5.1), the subject statement's aud stands in for the requested audience if the request carries none, and bounds it if the request carries one, so a replacement is never broader than the statement it replaces.

completion_mode:

As defined for software statement code redemption (Section 8).

The request MUST NOT contain actor_token or actor_token_type, nor the scope, resource, or authorization_details parameters prohibited by Section 6.1.

The client authenticates, and a public client constrains the request, as described in Section 4. An assertion-based method such as private_key_jwt [RFC7521] [RFC7523] serves if the document specifies one.

An initial access token presented under this profile MUST be time limited, be limited to the issuer, be bound to an exact client identifier URL or an explicitly authorized client identifier namespace, and, if opaque, have at least 128 bits of entropy.

The initial access token is subject to the following:

A DPoP proof on the exchange constrains any resulting deferral but neither authenticates the presenter nor protects the subject token (Section 3 of [RFC9449]). The initial access token therefore needs its own sender constraint or single-use restriction.

A use is consumed when the authorization server commits to an outcome: issuing a statement, creating a deferral, or denying issuance. Concurrent presentations of a single-use credential MUST NOT both be committed.

The authorization server MUST validate the subject token before retrieving client-controlled metadata or enqueueing any processing. A subject token MUST result in invalid_request (Section 2.2.2 of [RFC8693]) if any of the following holds:

An unacceptable requested audience results in invalid_target [RFC8693].

The authorization server MUST bind a fresh metadata snapshot (Section 4.1) and the requested audience before returning either the software statement or a deferral code.

Issuance policy determines whether an initial access token authorizes only the request or issuance itself. The exchange results in a software statement token response (Section 10), a deferral at a deferred issuer (Section 9), or the terminal denial of Section 10.1.

5.1. Renewal

A client renews by presenting its current or most recent software statement as the subject token. The authorization server MUST verify the following:

  • The authorization server issued the statement.

  • The statement's sub equals the request's client_id.

  • The client authenticated with a key carried both by the document the statement's cimd_digest names and by the current document.

That authentication is the holder binding: without it, whoever held a copy of the statement could renew. To check the reviewed document's keys, an issuer offering renewal retains the octets of each document it issues a statement over.

A client rotating keys inline renews while its document carries both the old and the new key. For a document naming jwks_uri, the binding is to whatever that location serves. A public client holds no such key and obtains a replacement through the redirect flow (Section 6).

A replacement carries the subject statement's aud_tenant while the decision is confined to that tenant, and the uses the subject statement permits unless issuance policy narrows them. A replacement MUST NOT permit a use the subject statement does not. It is matched to the statement it replaces by iss and sub ([STATEMENT]).

An issuer MUST NOT accept as subject token a statement it has withdrawn ([STATEMENT]), including one whose status it publishes under [STATUS] as other than VALID. Renewing such a statement would reissue the decision that withdrawal ended.

The authorization server MAY accept a statement that has expired, and SHOULD bound how long after expiry it will do so. A renewal after an extended absence amounts to a request for re-establishment.

If the current document's digest equals the subject statement's cimd_digest, whether renewal requires fresh review is issuer policy. If the digests differ, the issuer MUST apply the decision it would apply to a first issuance for that document, and MUST NOT renew on the strength of the prior statement alone. Otherwise, whoever can change the document could obtain the issuer's signature over an unreviewed change.

6. Software Statement Authorization Request

The client sends an authorization request as described in Section 4.1.1 of [RFC6749], with the following parameters:

response_type:

REQUIRED. The value MUST be software_statement_code.

client_id:

REQUIRED. The client identifier URL described in Section 4.

redirect_uri:

REQUIRED. The value MUST exactly match one of the redirection URIs in the Client ID Metadata Document, subject to the redirect URI rules of [CIMD]. Whatever authentication method the document declares, the value MUST NOT be a redirection URI that another application on the same device could claim, as the public-client presentation rules of [STATEMENT] define (Section 14.4).

state:

OPTIONAL. An opaque value used by the client to bind the authorization response to its request. Because the authorization server requires PKCE, a client can rely on PKCE for CSRF protection instead, as Section 2.1 of [RFC9700] permits.

code_challenge:

REQUIRED. A PKCE challenge as defined by [RFC7636].

code_challenge_method:

REQUIRED. The value MUST be S256.

response_mode:

OPTIONAL. The response mode, as defined by [OAUTH-MRT]. The default for response_type=software_statement_code is query. Section 7.1 gives response mode considerations.

audience:

OPTIONAL. A target service at which the client intends to use the statement, with the semantics of Section 2.1 of [RFC8693]. The parameter can be repeated to request several.

Each value MUST be an authorization server issuer identifier as defined by [RFC8414]. Values MUST NOT be duplicated, and order is insignificant.

completion_mode:

OPTIONAL. A value that includes deferred, sent as the advance hint of Section 4.2 of [DTR].

dpop_jkt:

REQUIRED for a public client and OPTIONAL otherwise. The parameter has the semantics of Section 10 of [RFC9449].

The authorization server selects the final audience according to policy. It MUST NOT place in the statement's aud claim any value the request did not carry, except that a renewal request carrying no audience counts as carrying the subject statement's aud (Section 5). An issuer narrows a requested audience and never widens it.

If no requested audience is acceptable, the authorization server MUST reject the request with invalid_target [RFC8707]. An authorization server whose policy requires a restricted audience rejects a request carrying none with the same error.

The audience semantics of this section apply only to software statement requests and do not affect proprietary uses of the parameter for access-token targeting.

The authorization server MUST reject with invalid_request a request that omits a required PKCE parameter or a required dpop_jkt.

The following is a non-normative example of an authorization request from a confidential client (line breaks are for display purposes only):

GET /authorize?response_type=software_statement_code
  &client_id=https%3A%2F%2Fclient.example.org%2Fmetadata.json
  &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb
  &state=4L7xQ2mN9pR6sT1vW8yZ3aB5cD0fG2hJ
  &code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
  &code_challenge_method=S256 HTTP/1.1
Host: server.example.com

6.1. Prohibited Parameters

A software statement request does not grant access to a protected resource. The following authorization request parameters MUST NOT be present: scope, resource as defined by [RFC8707], and authorization_details as defined by [RFC9396].

An authorization server MUST reject a request containing any of these parameters with invalid_request. The same prohibition and error apply to a software statement code redemption (Section 8) and to a token exchange under Section 5. The audience parameter (Section 6) is not prohibited: it describes the requested artifact rather than requesting access.

Hybrid response types that combine software_statement_code with code, token, id_token, or any other response type are not defined. An authorization server MUST reject such a request with unsupported_response_type.

7. Authorization Response

After validating the request and performing any immediate interaction, the authorization server returns the software statement code response or an error. The authorization server MUST NOT place the software statement or approval-sensitive information in any response from the authorization endpoint.

A denial is never signaled in the authorization response: the authorization server returns a software statement code whether the issuance decision is complete, pending, or already a denial, and delivers any denial at redemption (Section 10.1).

7.1. Software Statement Code Response

The software statement code response applies the authorization response protections of [RFC9700]. The authorization server returns the following parameters to the client's redirection endpoint, using the selected response mode:

software_statement_code:

REQUIRED. A short-lived, single-use artifact redeemed at the token endpoint (Section 8). It MUST be bound to the client identifier, redirect URI, PKCE challenge, metadata snapshot, requested audience, and, when dpop_jkt was present, that JWK thumbprint.

The value MUST contain at least 128 bits of entropy from a cryptographically secure random source, be opaque to the client, expire shortly after issuance, and not be accepted more than once.

state:

REQUIRED if the authorization request contained state. The exact value received in the authorization request.

iss:

REQUIRED. The authorization server issuer identification parameter defined by [RFC9207].

A software statement code is not an authorization code and MUST NOT be redeemable as one.

Because scripts at the redirection endpoint can access the fragment, the fragment response mode SHOULD NOT be used. A client MAY request form_post [FORM-POST].

The following is an example of a software statement code response using the default query response mode (line breaks are for display purposes only):

HTTP/1.1 302 Found
Location: https://client.example.org/cb?
  software_statement_code=V7e1gP8zT2mN4qR6sW9xY3aB5cD7fH0jK2pL4uQ6vX8&
  state=4L7xQ2mN9pR6sT1vW8yZ3aB5cD0fG2hJ&
  iss=https%3A%2F%2Fserver.example.com

Request validation errors follow Section 4.1.2.1 of [RFC6749].

8. Software Statement Code Redemption

The client redeems a software statement code by sending an HTTP POST request to the token endpoint using the application/x-www-form-urlencoded format with the following parameters:

grant_type:

REQUIRED. The value MUST be urn:ietf:params:oauth:grant-type:software-statement.

software_statement_code:

REQUIRED. The software statement code returned by the authorization endpoint.

redirect_uri:

REQUIRED. The same redirection URI used in the authorization request.

client_id:

REQUIRED. The same client identifier URL used in the authorization request.

code_verifier:

REQUIRED. The PKCE verifier corresponding to the code_challenge in the authorization request.

completion_mode:

REQUIRED when the authorization server advertises deferred_token_response_supported (Section 13), and not used otherwise. An authorization server that does not defer ignores it. When present, the value MUST include deferred. A deferral-capable issuer rejects a redemption that omits it with invalid_request.

The request MUST NOT contain audience, which was bound at the authorization endpoint. A request containing it is rejected with invalid_request.

The client authenticates according to Section 4. When dpop_jkt was included in the authorization request, the client MUST send a DPoP proof for the token endpoint using the same key.

The authorization server MUST validate the software statement code and all of its bindings before processing the request. An invalid, expired, previously used, or incorrectly bound code MUST result in an invalid_grant error. A PKCE or DPoP binding failure is handled according to [RFC7636] or [RFC9449], respectively.

A redemption attempt consumes the software statement code whenever the presented code value is valid, including when its PKCE, DPoP, or client-authentication bindings fail (Section 14.4). A DPoP nonce challenge [RFC9449] is not a binding failure: an authorization server requiring a nonce issues the use_dpop_nonce challenge before evaluating the code, which remains unconsumed.

When a previously consumed code is presented again, the authorization server SHOULD revoke any deferral derived from it ([RFC9700]). To keep anyone who observed the code in a URL from triggering that revocation, an authorization server MAY limit revocation to replays that pass the PKCE check.

For a valid, unconsumed code, the authorization server returns the following, according to the issuance decision:

An authorization server that does not defer completes the decision before responding.

The following is a non-normative example of a redemption request from a confidential client at a deferred issuer (line breaks are for display purposes only):

POST /token HTTP/1.1
Host: server.example.com
Content-Type: application/x-www-form-urlencoded

grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3A
  software-statement
  &software_statement_code=V7e1gP8zT2mN4qR6sW9xY3aB5cD7fH0jK2pL4uQ6vX8
  &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb
  &client_id=https%3A%2F%2Fclient.example.org%2Fmetadata.json
  &code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
  &completion_mode=deferred
  &client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3A
  client-assertion-type%3Ajwt-bearer
  &client_assertion=eyJhbGciOiJFUzI1NiIsImtpZCI6ImNsaWVudC0xIn0...

9. Deferred Processing

An authorization server MAY answer an originating request with a deferred token response [DTR] instead of a statement.

Deferral follows [DTR], including the sender constraint it fixes at origination, with the following additions:

The following is a non-normative example of a first polling request for a deferral created by a token exchange, from a confidential client authenticating with the same private_key_jwt method as the exchange:

POST /token HTTP/1.1
Host: issuer.example
Content-Type: application/x-www-form-urlencoded

grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adeferred
&deferral_code=8xLOxBtZp8
&client_id=https%3A%2F%2Fclient.example.org%2Fmetadata.json
&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3A
client-assertion-type%3Ajwt-bearer
&client_assertion=eyJhbGciOiJFUzI1NiIsImtpZCI6ImNsaWVudC0xIn0...

10. Software Statement Token Response

A successful response has HTTP status code 200, a media type of application/json, and the following members:

access_token:

REQUIRED. The software statement issued by the authorization server. It MUST conform to [STATEMENT], with cimd_digest the digest of the bound metadata snapshot, aud the selected audience if one is restricted, and statement_uses the uses issuance policy permits.

issued_token_type:

REQUIRED. The value MUST be urn:ietf:params:oauth:token-type:software-statement.

token_type:

REQUIRED. The value MUST be N_A (Section 2.2.1 of [RFC8693]).

expires_in:

RECOMMENDED. The remaining lifetime of the software statement in seconds. If present, it MUST be consistent with the statement's exp claim.

The response MUST NOT contain refresh_token or scope. The authorization server MUST include Cache-Control: no-store and SHOULD also include Pragma: no-cache.

DPoP under this specification binds requests and deferral state, not the issued artifact. [DTR]'s requirement that a final access token inherit the originating DPoP binding does not apply.

The following is an example of a software statement token response:

HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "access_token":
    "eyJ0eXAiOiJzb2Z0d2FyZS1zdGF0ZW1lbnQrand0...",
  "issued_token_type":
    "urn:ietf:params:oauth:token-type:software-statement",
  "token_type": "N_A",
  "expires_in": 3600
}

The access_token member is a security-token container ([RFC8693]), not an OAuth access token. The software statement it carries is consumed only as [STATEMENT] provides, MUST NOT be attached to a request as an Authorization: Bearer credential, and is not subject to refresh.

Implementations that cache issued tokens by type SHOULD key this artifact on its issued_token_type so that generic access-token handling does not apply to it, and SHOULD treat it as a sensitive credential in logs.

10.1. Terminal Denial

When the authorization server decides not to issue the requested software statement, it returns a token error response as defined in Section 5.2 of [RFC6749] with the error code access_denied and HTTP status code 400, and MUST include the Cache-Control: no-store response header field. This applies to both originating requests, including when the denial answers a polling request (Section 9).

The denial is terminal for the request. A denied deferral behaves as [DTR] specifies for a request resolved with an error, and a client that receives access_denied in response to a polling request MUST NOT send another polling request with that deferral_code. A denial does not preclude a later issuance request. Whether to accept one is issuance policy.

11. Withdrawal

An issuer that ends a decision before its expiry does so through a withdrawal mechanism ([STATEMENT]), such as the Token Status List binding of [STATUS]. Withdrawing a statement does not withdraw a replacement obtained through Section 5.1, and withdrawing a replacement does not restore its predecessor.

12. Issuer and Consumer as One Server

An authorization server that issued a statement already holds the decision that statement records. If it is also a trusting authorization server, it MAY admit the client on that record rather than require the statement to be presented back to it, at registration or at runtime.

Because a decision a server made is not a document it has re-read, a server admitting a client on the record of a statement it issued MUST apply every check [STATEMENT] applies to a presented statement, and at registration every check [REGISTRATION] applies, taking the statement's claims from its record of the decision. The record replaces only the signature: the server still obtains the document at sub and compares its digest with the recorded one.

At runtime, the recorded decision replaces the presented statement, not the proof of who is making the request. The request MUST meet the sender constraint of [STATEMENT] against the reviewed document, as a presentation would, and a successful admission creates an establishment. At registration, the rules of [REGISTRATION] apply as they do to a statement presented there.

13. Authorization Server Metadata

An authorization server that issues software statements under this specification advertises true for client_id_metadata_document_supported ([CIMD]) and publishes the issuer metadata of [STATEMENT].

An issuer that may defer a request (Section 9) publishes the metadata [DTR] requires, including true for deferred_token_response_supported. A synchronous issuer advertises neither that value nor deferral-code revocation, and need not implement [DTR].

An authorization server supporting the redirect flow advertises urn:ietf:params:oauth:grant-type:software-statement in grant_types_supported, software_statement_code in response_types_supported, and true for authorization_response_iss_parameter_supported as defined by [RFC9207].

An authorization server supporting the token exchange profile (Section 5) advertises urn:ietf:params:oauth:grant-type:token-exchange in grant_types_supported and publishes software_statement_subject_token_types_supported (below). An implementation supporting only that profile advertises neither the software statement grant nor the software_statement_code response type.

A client that requires deferral MUST NOT send a request to an authorization server that does not advertise deferred_token_response_supported. Such an issuer answers with a statement or a terminal denial, never a deferral.

This specification defines the following additional authorization server metadata members:

software_statement_subject_token_types_supported:

REQUIRED for an authorization server that supports the token exchange profile (Section 5), and absent otherwise. A JSON array of the subject_token_type values the authorization server accepts when requested_token_type is urn:ietf:params:oauth:token-type:software-statement. Publishing this member signals support for the profile. Listing urn:ietf:params:oauth:token-type:software-statement among its values advertises renewal by prior statement (Section 5.1).

14. Security Considerations

14.1. Client Establishment Is Not an Access Grant

A software statement grants no resource access or consent on behalf of the software's users. A protected resource MUST NOT accept a software statement returned in the access_token member (Section 10) as an access token.

When an approval interface is shown, it SHOULD state that the decision vouches for the client's metadata document. It MUST NOT imply that the approver is granting the client access to resources.

An erroneous approval affects every authorization server in the statement's audience until expiry. The approval interface therefore SHOULD present the following:

  • The client identifier URL, with its origin shown as the client's identity, and with display metadata such as client_name and logo_uri marked as asserted by the client (a look-alike document can carry another vendor's name).

  • The document content it will vouch for, identified by its digest.

  • The audience the issuer intends to place in the statement.

  • The tenant the decision is confined to, if the statement will carry aud_tenant ([STATEMENT]).

  • The intended lifetime.

If the client requested a different or broader audience, the interface SHOULD make narrowing visible. A document naming attesters in client_attesters ([ATTESTERS]) endorses them for the software under review and deserves particular scrutiny.

14.2. What Issuance Attests

A software statement means only that its issuer evaluated the document captured in the metadata snapshot (Section 4.1) under its issuance policy and decided to vouch for it, not that the document's contents are true. Because the client authors the metadata document, an issuer SHOULD corroborate security-relevant metadata through evidence beyond the document itself. Verification depth is part of the trust relationship.

14.3. Client Metadata Retrieval

Fetching a Client ID Metadata Document and the resources it references exposes the authorization server to server-side request forgery, resource exhaustion, malicious content, and client impersonation. The considerations of [CIMD] apply.

14.4. Authorization Response Security

The software statement is a signed credential and can contain sensitive deployment information, so it is never returned in an authorization response (Section 7).

Before redeeming a software statement code, the client MUST verify state, if it sent one, and MUST validate the authorization response iss parameter according to [RFC9207].

A public client presents no client authentication, so its association with the software depends on delivery to a metadata-listed redirection endpoint. Another application can claim a private-use or loopback endpoint ([RFC8252]). PKCE and DPoP bind the code to the initiator but cannot stop an attacker from initiating under another party's client_id. Only an https endpoint no other application can claim demonstrates control of the publisher's origin, so Section 6 requires one. A native public client can host such an endpoint or use the token exchange profile (Section 5).

A confidential client's authentication proves possession of a key, not that the key is absent from software distributed to end users, so the requirement applies to it as well. A statement over a document listing an endpoint another application can claim is in any case review-only at a trusting authorization server ([STATEMENT]).

An authorization server SHOULD relate the redirection URI's origin to the client identifier URL or the metadata document's client_uri according to policy. Endpoint or key control informs issuance policy but does not determine issuance.

A software statement code in a URL is visible to browser history, referrer fields, logs, and other observers. It is short lived, single use, and unredeemable without the PKCE verifier and any bound dpop_jkt key. The form_post response mode (Section 7.1) keeps the code out of URLs.

14.5. Token Exchange Considerations

Validating the subject token before metadata retrieval or enqueueing (Section 5) limits resource consumption by unauthorized requesters. Authorization servers SHOULD still do the following:

  • Rate-limit these exchanges.

  • Cache successful retrieval results and back off after failures rather than caching them, which [CIMD] forbids.

  • Bound pending deferrals per client identifier and requester.

Because the redirect flow reaches the approval queue before any client-authenticated step, the same rate limits and pending-approval bounds SHOULD apply per client identifier there.

A subject token is an authorization credential, not a client identifier. If the Client ID Metadata Document declares a method, a subject token does not substitute for client authentication.

A subject token appears in a form body, so any component recording request bodies can expose it. Authorization servers MUST exclude subject tokens from logs, traces, error messages, and audit records. Clients and authorization servers MUST protect a subject token as a bearer credential unless its format provides proof of possession.

A token exchange carries no in-band evidence of user participation. An authorization server MUST NOT treat a token exchange as implying prior user consent and MUST apply the same issuance and approval policy as for the redirect flow.

14.6. Renewal by Prior Statement

If both documents carry their keys inline, a party able to change the current document cannot supply a key that satisfies the holder binding of Section 5.1. If they name a jwks_uri, whoever controls that location can supply such a key. For this reason, a changed document receives the decision a first issuance receives. Binding renewal to the client's key also spares automated renewal a long-lived reusable initial access token, a standing credential to mint statements.

14.7. Signing Keys and Algorithms

A compromised software statement signing key lets an attacker mint statements for every audience that trusts it.

  • Issuers SHOULD protect signing keys according to the scope of their trust relationships and support controlled key rotation.

  • Issuers SHOULD prefer signature algorithms with modern security properties, such as PS256, ES256, or EdDSA, over RSASSA-PKCS1-v1_5 (RS256), and MUST follow [RFC8725] when signing.

14.8. Approver Identity and Audit

A software statement does not identify the human or system that approved issuance. Deployments that require approver attribution retain it in an audit record or define a statement claim and its privacy semantics.

An approved statement is accepted at every authorization server in its audience, not only within the approver's own scope. The policy governing who may approve issuance MUST be at least as restrictive as the policy governing manual client establishment at the issuer. Approval by a party authorized only for a personal or organizational scope MUST NOT produce a statement whose audience exceeds that scope, or whose aud_tenant names a tenant outside it.

To keep a look-alike document from reaching approval, an issuer SHOULD limit what an approver may approve to client identifiers under publisher namespaces it has enrolled.

Authorization servers SHOULD keep an audit record that binds each decision, whether approval or denial, to the following:

  • The metadata digest (Section 4.1) of the document the deciding party evaluated.

  • The policy under which the decision was made.

  • The identity of the deciding party.

  • The time of decision.

Authorization servers SHOULD retain the exact retrieved octets of the approved document for audit. A re-serialized copy cannot reproduce the digest.

15. Privacy Considerations

The authorization server learns the client identifier URL, the client's metadata document, and information about the party interacting with the authorization endpoint. It SHOULD collect and retain only the information required for issuance, security monitoring, and audit obligations.

An aud claim reveals which authorization servers the client intends to use. [STATEMENT] weighs that disclosure against omitting the claim and recommends naming an audience, which an issuer does by requiring one in the request (Section 6).

Clients SHOULD NOT present statements outside their intended deployment context. If the relationship is sensitive, a redirect-flow client SHOULD use Pushed Authorization Requests [RFC9126].

Approval records can link a person to a client and deployment. Such records SHOULD be access-controlled and retained only as long as required.

16. IANA Considerations

16.1. OAuth Authorization Endpoint Response Types Registry

This specification requests registration of the following value in the IANA "OAuth Authorization Endpoint Response Types" registry established by [RFC6749]:

Response Type Name:

software_statement_code

Change Controller:

IESG

Specification Document(s):

This specification, Section 6 and Section 7

16.2. OAuth URI Registry

This specification requests registration of the following values in the IANA "OAuth URI" registry:

URN:

urn:ietf:params:oauth:grant-type:software-statement

Common Name:

OAuth Software Statement Grant Type

Change Controller:

IESG

Specification Document(s):

This specification, Section 8

URN:

urn:ietf:params:oauth:token-type:software-statement

Common Name:

OAuth Software Statement Token Type

Change Controller:

IESG

Specification Document(s):

This specification, Section 10 and Section 5

16.3. OAuth Parameters Registry

This specification requests that IANA add this specification, Section 6 and Section 5, as an additional reference for the existing audience parameter registered by [RFC8693] and extend its usage location to include authorization requests. The parameter name and change controller are unchanged.

This specification likewise requests that IANA add it as an additional reference for the completion_mode parameter (Section 6). The parameter is defined by [DTR], whose registration already includes authorization requests. The name, usage location, and change controller are unchanged.

This specification also requests registration of the following value in the IANA "OAuth Parameters" registry established by [RFC6749]:

Parameter Name:

software_statement_code

Parameter Usage Location:

authorization response, token request

Change Controller:

IESG

Specification Document(s):

This specification, Section 7.1 and Section 8

16.4. OAuth Extensions Error Registry

Both error codes this specification uses at new locations are already registered. This specification requests that IANA add it as an additional reference for each, and extend the usage location of invalid_target to authorization error responses:

Error Name:

access_denied

Existing Registration:

[RFC8628]

Change Controller:

IESG

Specification Document(s):

[RFC8628], this specification (Section 10.1)

Error Name:

invalid_target

Existing Registration:

[RFC8707]

Error Usage Location:

authorization error response, in addition to the locations already registered

Change Controller:

IESG

Specification Document(s):

[RFC8707], this specification (Section 6)

16.5. OAuth Authorization Server Metadata Registry

This specification requests registration of the following values in the IANA "OAuth Authorization Server Metadata" registry established by [RFC8414]:

Metadata Name:

software_statement_subject_token_types_supported

Metadata Description:

JSON array of subject token type values accepted for exchanging into software statements; signals support for the token exchange profile.

Change Controller:

IESG

Specification Document(s):

This specification, Section 13 and Section 5

17. References

17.1. Normative References

[CIMD]
Parecki, A. and E. Smith, "OAuth Client ID Metadata Document", Work in Progress, Internet-Draft, draft-ietf-oauth-client-id-metadata-document-02, , <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-client-id-metadata-document-02>.
[DTR]
Jacobsen, F. K., de Oliveira Niero, G., and M. Gerber, "Deferred Token Response", Work in Progress, Internet-Draft, draft-ietf-oauth-deferred-token-response-00, , <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-deferred-token-response-00>.
[FORM-POST]
"OAuth 2.0 Form Post Response Mode", n.d., <https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html>.
[OAUTH-MRT]
"OAuth 2.0 Multiple Response Type Encoding Practices", n.d., <https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC6749]
Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, , <https://www.rfc-editor.org/rfc/rfc6749>.
[RFC7521]
Campbell, B., Mortimore, C., Jones, M., and Y. Goland, "Assertion Framework for OAuth 2.0 Client Authentication and Authorization Grants", RFC 7521, DOI 10.17487/RFC7521, , <https://www.rfc-editor.org/rfc/rfc7521>.
[RFC7523]
Jones, M., Campbell, B., and C. Mortimore, "JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants", RFC 7523, DOI 10.17487/RFC7523, , <https://www.rfc-editor.org/rfc/rfc7523>.
[RFC7591]
Richer, J., Ed., Jones, M., Bradley, J., Machulak, M., and P. Hunt, "OAuth 2.0 Dynamic Client Registration Protocol", RFC 7591, DOI 10.17487/RFC7591, , <https://www.rfc-editor.org/rfc/rfc7591>.
[RFC7636]
Sakimura, N., Ed., Bradley, J., and N. Agarwal, "Proof Key for Code Exchange by OAuth Public Clients", RFC 7636, DOI 10.17487/RFC7636, , <https://www.rfc-editor.org/rfc/rfc7636>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8414]
Jones, M., Sakimura, N., and J. Bradley, "OAuth 2.0 Authorization Server Metadata", RFC 8414, DOI 10.17487/RFC8414, , <https://www.rfc-editor.org/rfc/rfc8414>.
[RFC8693]
Jones, M., Nadalin, A., Campbell, B., Ed., Bradley, J., and C. Mortimore, "OAuth 2.0 Token Exchange", RFC 8693, DOI 10.17487/RFC8693, , <https://www.rfc-editor.org/rfc/rfc8693>.
[RFC8707]
Campbell, B., Bradley, J., and H. Tschofenig, "Resource Indicators for OAuth 2.0", RFC 8707, DOI 10.17487/RFC8707, , <https://www.rfc-editor.org/rfc/rfc8707>.
[RFC8725]
Sheffer, Y., Hardt, D., and M. Jones, "JSON Web Token Best Current Practices", BCP 225, RFC 8725, DOI 10.17487/RFC8725, , <https://www.rfc-editor.org/rfc/rfc8725>.
[RFC9207]
Meyer zu Selhausen, K. and D. Fett, "OAuth 2.0 Authorization Server Issuer Identification", RFC 9207, DOI 10.17487/RFC9207, , <https://www.rfc-editor.org/rfc/rfc9207>.
[RFC9396]
Lodderstedt, T., Richer, J., and B. Campbell, "OAuth 2.0 Rich Authorization Requests", RFC 9396, DOI 10.17487/RFC9396, , <https://www.rfc-editor.org/rfc/rfc9396>.
[RFC9449]
Fett, D., Campbell, B., Bradley, J., Lodderstedt, T., Jones, M., and D. Waite, "OAuth 2.0 Demonstrating Proof of Possession (DPoP)", RFC 9449, DOI 10.17487/RFC9449, , <https://www.rfc-editor.org/rfc/rfc9449>.
[RFC9700]
Lodderstedt, T., Bradley, J., Labunets, A., and D. Fett, "Best Current Practice for OAuth 2.0 Security", BCP 240, RFC 9700, DOI 10.17487/RFC9700, , <https://www.rfc-editor.org/rfc/rfc9700>.
[STATEMENT]
McGuinness, K., "CIMD Software Statement", n.d., <https://datatracker.ietf.org/doc/draft-mcguinness-oauth-cimd-sw-stmt>.

17.2. Informative References

[APPROVAL-DCR]
Dellaert, P., "OAuth 2.0 Approval-Based Dynamic Client Registration", Work in Progress, Internet-Draft, draft-dellaert-oauth-approval-based-dcr-00, , <https://datatracker.ietf.org/doc/html/draft-dellaert-oauth-approval-based-dcr-00>.
[ATTESTERS]
McGuinness, K., "OAuth 2.0 Client Attester Endorsement", Work in Progress, Internet-Draft, draft-mcguinness-oauth-client-attesters-00, , <https://datatracker.ietf.org/doc/html/draft-mcguinness-oauth-client-attesters-00>.
[AU-CDR]
"Consumer Data Standards (Australia)", n.d., <https://consumerdatastandardsaustralia.github.io/standards/>.
[OPENID-FED]
"OpenID Federation 1.0", n.d., <https://openid.net/specs/openid-federation-1_0.html>.
[REGISTRATION]
McGuinness, K., "CIMD Software Statement Registration", n.d., <https://datatracker.ietf.org/doc/draft-mcguinness-oauth-cimd-sw-stmt-registration>.
[RFC8252]
Denniss, W. and J. Bradley, "OAuth 2.0 for Native Apps", BCP 212, RFC 8252, DOI 10.17487/RFC8252, , <https://www.rfc-editor.org/rfc/rfc8252>.
[RFC8628]
Denniss, W., Bradley, J., Jones, M., and H. Tschofenig, "OAuth 2.0 Device Authorization Grant", RFC 8628, DOI 10.17487/RFC8628, , <https://www.rfc-editor.org/rfc/rfc8628>.
[RFC9126]
Lodderstedt, T., Campbell, B., Sakimura, N., Tonge, D., and F. Skokan, "OAuth 2.0 Pushed Authorization Requests", RFC 9126, DOI 10.17487/RFC9126, , <https://www.rfc-editor.org/rfc/rfc9126>.
[STATUS]
McGuinness, K., "CIMD Software Statement Status", n.d., <https://datatracker.ietf.org/doc/draft-mcguinness-oauth-cimd-sw-stmt-status>.
[UK-OPEN-BANKING]
"Open Banking UK Dynamic Client Registration Specification v3.3", n.d., <https://openbankinguk.github.io/dcr-docs-pub/v3.3/dynamic-client-registration.html>.

Appendix A. Design Rationale

Why the software statement code is not an authorization code. Redeeming an authorization code issues an access token under [RFC6749]. This flow issues an artifact that grants nothing. A distinct code keeps implementations that treat any code as redeemable from confusing the two.

Why the response uses access_token. [RFC8693] defines the container, so existing token endpoint machinery carries the artifact. The issued_token_type identifies what it is.

Why not the device authorization grant. [RFC8628] fits a human decision that outlives a request, and an issuer whose approval is always out of band can use it. It assumes a user co-present with a constrained device who enters a user code elsewhere. Issuance approval is made by an administrator or reviewer who does not operate the client and is often not present, and the client already has a browser. The redirect flow covers an approver reachable through that browser; the token exchange profile covers the case with no browser.

Why not a profile of attestation-based client authentication. An attester vouches for a running instance and its key, for as long as it chooses, to the server in front of it; a statement issuer vouches for reviewed software, for days, to every server that trusts it. Profiling one as the other would give the reviewed-software decision an instance-scoped trust model, or give instance attestation unwarranted portability.

Why not OpenID Federation trust marks. A trust mark [OPENID-FED] is a signed third-party assertion about an entity, resolved through a federation that supplies key discovery, policy, and delegation and requires both parties to enroll. This specification is pairwise: a consumer configures an issuer directly. Federation standardizes trust resolution, not enrollment, approval, or deferred completion. Ecosystems already operating a federation are better served by trust marks.

Deferred capabilities. This version omits callback delivery for deferral.

Acknowledgments

This specification builds on [DTR], [CIMD], and [APPROVAL-DCR]. The author thanks the authors and contributors to those specifications and the OAuth working group participants whose discussions informed this work.

Author's Address

Karl McGuinness
Independent