Repository navigation
Description
Summary
Two open finance ecosystems, Chile's Sistema de Finanzas Abiertas (SFA, regulated by the CMF) and Peru's Open Finance system (regulated by the SBS), require some consents to be authorized by more than one person. This applies to legal entities, according to their signing rules, and in Peru also to accounts with more than one holder. Both ecosystems use FAPI 2.0 with RAR and Grant Management.
Implementing these requirements has needed proprietary extensions for three situations: the period while signatures are collected, resuming once they are complete, and changing a grant that needs joint signing. We would like the specification to cover these cases, so that implementations in both ecosystems stay within the standard and remain interoperable.
Section 3.2 of the current draft (oauth-v2-grant-management-04) already recognizes the scenario ("multi-party approval process for business entities"), and #420 was left open waiting for concrete use cases. This issue provides them.
This issue is raised by Minsait, implementation partner of the CMF and the SBS for both security profiles. Revocation is covered separately in #891.
Context
Chile (SFA, NCG 514 as amended, Annex 3)
- A legal entity grants consent through representatives authorized to act jointly or separately, according to its signing rules.
- The data holder (IPI/IPC) verifies during authentication that each signer is authorized.
- When more than one signature is required, the data holder notifies the other signers through its own channels. It then informs the client (PSBI/PSIP) whether all signers authorized the request or whether the request could not be completed.
- The consent states shown to the user are Pending (waiting for authorization, particularly in joint-action cases), Rejected (by the user or by one or more signers), Authorized, Revoked and Expired.
- The client must record the legal entity and each person who signed on its behalf.
- The redirect flow (PAR) is mandatory in the initial phase. CIBA is planned for later phases.
Chile: implementation experience
- The AS keeps the authorization pending until the quorum defined by the legal entity's signing regime is reached. No authorization code (redirect flow) and no tokens (CIBA) are issued before that.
- The signers and the quorum are determined by the data holder from the entity's signing regime, never by the client. Each signer must still hold authority at the time of signing.
- A rejection by any signer closes the request.
- Two windows are needed: one to collect the signatures and, in the redirect flow, one for the client to collect the tokens after the quorum is reached.
-04gives the client no identifier or status before the token response, so a proprietary status query was needed.- Resuming after the initiator has left needed a proprietary request parameter, because §5.4 does not allow a
grant_idwithout an action. - A
replaceormergeon a legal-entity grant also needs the quorum. It is handled as a separate pending change, while the grant keeps its previous permissions. - The subject of the tokens is the person who initiated the request, while the holder is the legal entity. Any representative currently authorized can query and revoke the entity's grants, but only through the client that created the grant.
- With CIBA, the signing window is capped by the lifetime of the CIBA request.
Peru (FAPI 2.0 security profile, SBS)
- Joint action applies to accounts with more than one holder, for both natural persons and legal entities.
- The request records the required signers and the authorization rule (1-of-1, N-of-M or unanimity), as determined by the AS.
- While signatures are pending, no grant exists and no tokens are issued. The pending phase is explicitly not a grant state; a grant can only be Authorised, Revoked or Expired.
- Signatures must be collected within 24 hours, compared with 20 minutes for a regular authorization request. If a signer loses their authority before completion, the request lapses.
- Every signer authenticates at the data holder with strong customer authentication. Each signature is recorded as evidence: identity, time, channel, and authentication level and methods.
- The ID Token issued to the client corresponds to the user who initiated the request, identified in the PAR request. The authentication of the other signers is not reported to the client.
- If the signatures are not completed in time, the client receives
access_deniedin the authorization response (JARM), through the redirect. - The profile uses the redirect flow only (PAR + JARM). It does not define how the client obtains the tokens if the initiator does not wait, nor joint signing for
mergeorreplace.
Sequence: joint signing in the redirect flow, with the gaps
sequenceDiagram
participant C as Client
participant AS as AS (data holder)
participant S1 as Signer 1 (initiator)
participant S2 as Signer 2
C->>AS: PAR with authorization_details
AS-->>C: request_uri (short-lived, single use)
S1->>AS: Authenticate and approve
Note over AS: Quorum not reached, no code issued
AS-->>S2: Notify through the data holder's own channels
Note over C,AS: Gap 1: no standard identifier or status for the client
S2->>AS: Authenticate and approve (hours later)
Note over C,AS: Gap 2: no standard way to resume and collect the tokens
Note over C,AS: Gap 9: no notification of the outcome
What -04 says today
| Topic | -04 |
|---|---|
| Use case | §3.2 recognizes multiple natural persons as the resource owner, and multi-party approval for business entities. The client can query whether "complete authorization has occurred (by adhoc query or regular polling)". |
| Grant modification by the AS | §5.6.2 allows the AS to update a grant when an account "required additional authorizations before being considered as fully authorized". This assumes the grant already exists and tokens were issued. |
grant_id |
Returned in the token response (§5.5). §5.3: "grant_id should not be included in the authorization response". The PAR response is not mentioned. |
| Referencing a grant | §5.4: a grant_id without a grant_management_action is rejected with invalid_request; if the logged-in user does not match a resource owner, invalid_grant_id. |
| New tokens for an existing grant | §3.7: the client re-issues the authorization request with all parameters, references the grant and uses merge. |
| Changes | merge and replace take effect when the authorization request completes; joint signing of changes is not considered. |
| Grant creation | §5.6.1: a grant is active once its tokens have been claimed; otherwise the AS deletes it "after a reasonable timeout". |
| Query response | §6.4: scopes, claims, authorization_details, created_at, last_updated_at, expires_at, updated_by. No status element; "The response structure MAY also include further elements defined by extensions." |
| Notification | Not covered; only polling is mentioned (§3.2). |
| Flows | §5.2: the parameters may be used with CIBA requests. |
Gaps
- No standard identifier or status for a pending request. In Peru, no grant exists until all signatures are collected. In Chile, the AS keeps the pending authorization, but
-04gives the client no standard way to learn an identifier or status before the token response (§5.5). The PARrequest_uriis short-lived and single-use, and the CIBAauth_req_idexpires. Implementations need proprietary status queries. - No standard way to resume and collect the tokens. If the first signer does not wait, the client needs a way to obtain the tokens once the quorum is reached. §5.4 prevents referencing an existing
grant_idwithout an action, and no action means "continue with this authorization without changing it". Implementations need a proprietary request parameter. Gap 1 of Grant Management: user-authenticated revocation of a single grant #891 has the same root cause. - Two different windows, neither visible to the client. One window is for collecting signatures; the other, after the quorum, is for collecting the tokens. The §5.6.1 timeout is left to each AS and does not distinguish them. Peru allows 24 hours for signatures, and Chile uses windows of the same order. In CIBA, the request lifetime currently caps the signing window.
- Joint signing for changes is not covered. A
replaceormergeon a legal-entity grant also needs the quorum. Meanwhile the existing grant must remain active with its current permissions. The client needs an identifier and a status for the pending change. - No status in the grant query response. The state of the grant (for example active, rejected, revoked, expired) is not exposed explicitly.
- The holder is not the authenticated user. In both ecosystems the subject of the tokens (or of the ID Token) is the person who initiated the request, while the holder may be a legal entity or several account holders. Other authorized representatives may need to query or revoke the grant, and a strict reading of the
invalid_grant_idrule in §5.4 would prevent it. When the user being authenticated is different from the user of the grant #452 left this to implementations. - No signer information. Chile requires the client to record who signed on behalf of the legal entity, but
updated_byonly distinguishes the client from the AS. - Outcome reasons are not expressible. The ecosystems apply different rules: one rejection closes the request (Chile), the request lapses if a signer loses authority (both), or it lapses when the window ends (both). The specification need not prescribe these rules, but today the client cannot tell them apart.
- No notification of the outcome. Chile requires the data holder to inform the client of the outcome, and each ecosystem defines its own mechanism. Today the client learns the outcome from the redirect, CIBA polling or proprietary queries.
Why §3.7 (merge) is not enough
§3.7 lets a client obtain new tokens for an existing grant by sending merge with all request parameters. It does not solve the joint-signing cases:
- In Peru there is no grant to reference while signatures are pending.
- In Chile, a
mergeon a legal-entity grant is a change and needs the quorum again, which is the opposite of resuming. - A
mergepresents the user with a consent decision on the requested scope. Resuming should only let the user collect what was already authorized, without a new decision and without the possibility of widening the scope.
Proposal (options for discussion)
- A. Pending request identifier and status. An identifier available before any tokens exist (for example, in the PAR response, or correlated with the CIBA
auth_req_id). The client uses it to query a status such aspending,authorized,rejectedorexpired. The specification should allow this to be modeled either as a grant state or as a pre-grant request; both approaches exist in the region. - B. Resume and collect. A standard way to continue an existing authorization without modifying it, shared with Grant Management: user-authenticated revocation of a single grant #891 (option A), where the possible forms are listed. For example, an authorization request parameter that references the pending request (or the grant) and asks the AS to continue it as it is. It should have these security properties:
- only the user who initiated the request, through the same client, can resume;
- fresh user authentication;
- tokens are issued only once, even with concurrent redemptions;
- the
authorization_detailsalways come from the pending request or the grant, so a resumed request cannot widen the scope.
- C. Two exposed windows: a signing deadline and a collection deadline, distinct from the §5.6.1 timeout, and compatible with CIBA.
- D. Joint signing for
replaceandmerge. A pending change with its own identifier and status, while the grant keeps its current permissions until the change is applied. - E. Optional
statuselement in the grant query response (§6.4), with values that ecosystems can extend. - F. Holder and authorized representatives. Clarify that the holder may be a legal entity, or several holders, distinct from the token subject, and that the AS may allow other authorized representatives to manage the grant (see When the user being authenticated is different from the user of the grant #452), always within the client that created it.
- G. Optional signer information, limited to legal entities. For example, the number of signatures required and collected and the identification of signers. We are aware of the privacy rationale in §6 and §9; this would only apply where a regulation requires the client to record who acted on behalf of a legal entity.
- H. Outcome reasons. A small set of reasons (for example, rejected by a signer, signer authority lost, window expired, tokens not collected) without prescribing each ecosystem's rules.
- I. Notification of the outcome. Define a mechanism, or state explicitly that it is left to an extension.
- Flow independence. The solution should work with both the redirect flow and CIBA. The bridge discussed in Multi Party Consents #420 is one option worth revisiting: after the first approval in a redirect flow, return
authorization_pendingwith a handle, and let the client poll from there.
Related issues
- Multi Party Consents #420 Multi Party Consents (open, waiting for use cases)
- Grant Management Lifecycle #407 Grant Management Lifecycle (grant status before authorization;
grant_idin the PAR response) - When the user being authenticated is different from the user of the grant #452 When the user being authenticated is different from the user of the grant
- Grant Management: user-authenticated revocation of a single grant #891 User-authenticated revocation of a single grant
Questions for the WG
- Should the pending request be modeled inside Grant Management, or as a separate status of the authorization transaction?
- Is the PAR response an acceptable place for a pending request identifier, given the concerns raised in Grant Management Lifecycle #407?
- Should resuming an authorization and obtaining a management token (Grant Management: user-authenticated revocation of a single grant #891) share one mechanism for referencing an existing grant without modifying it?
- Should the specification say anything about changes in signing authority during the process, or only allow the outcome reason to express them?
Activity