Verify Module
Abstract
This document defines how an Authorizing Party receives, verifies, and authorizes a PaSO transaction. It specifies the proof package structure forwarded by the Relying Party, the verification procedure, and a standard endpoint for ingesting transactions.
1 Introduction
1.1 Overview
After the Wallet produces a presentation response, the Relying Party forwards the proof package to the Authorizing Party. This module defines what the proof package contains, how the Authorizing Party verifies it, and a standard HTTP endpoint for receiving it.
How the Relying Party obtains the Authorizing Party's public key and endpoint URI, and how the Authorizing Party establishes trust in the certificate of the party forwarding the proof package, are out of scope of this document.
1.2 Requirements Notation
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] and [RFC8174] when, and only when, they are written in all capital letters.
2 Proof Package
The Relying Party SHALL forward the following to the Authorizing Party:
- The signed [OID4VP] Authorization Request ([JAR] Request Object) as sent to the Wallet, in its compact-serialised JWT form.
- The full
vp_tokenas received from the Wallet.
The Relying Party SHALL NOT modify either artefact. Section 4 proposes a standard endpoint for forwarding; a payment scheme or the applicable Transaction Data Type Rulebook MAY define alternative forwarding mechanisms.
3 Verification Procedure
Upon receiving the proof package, the Authorizing Party SHALL perform the following checks. Step 1 applies once. Steps 2 to 6 apply to the PaSO presentation, that is, the presentation in the vp_token under a credential query identifier listed in the credential_ids of a PaSO-targeted transaction_data entry ([PaSO Core] Section 7.3). If the vp_token contains no such presentation, or more than one, the check fails ([PaSO Core] Section 7.4.1).
-
Request verification: Verify the signed Authorization Request JWT signature. Verify the Relying Party's identity from the request.
-
Credential verification: Verify the PaSO Credential of the presentation:
- Validate the credential signature.
- Verify the credential has not expired.
-
Verify the credential has not been revoked.
-
Holder binding proof verification: Verify the holder binding proof (KB-JWT for [SD-JWT-VC], DeviceAuthentication for [mdoc]).
-
SCA response claims verification per [PaSO Core] Section 6.1:
transaction_data_hash: identify the matched entry. It is the PaSO-targetedtransaction_dataentry whosecredential_idscontain the credential query identifier under which the presentation appears in thevp_token, and whose hash, computed per [PaSO Core] Section 6.1, equalstransaction_data_hash. If no entry matches, the check fails. The Authorizing Party SHALL NOT require the matched entry to be the first entry that targets that credential query ([PaSO Core] Section 7.4.2 step 2). The Relying Party signed every entry, and the Wallet's compatibility evaluation cannot be reproduced. In steps 4 to 6, "thetransaction_dataentry" refers to the matched entry, and "the matched transaction data type" to itstype.transaction_data_hash_alg: verify that it issha-256, or the algorithm named by the applicable Transaction Data Type Rulebook.request_integrity: recompute the [W3C.SRI] integrity value of the signed Authorization Request JWT and verify it matches.metadata_integrity: verify it matches the [W3C.SRI] integrity value of the Attestation Provider's current signed credential metadata JWT for this credential.- Static rendering: if the applicable Transaction Data Type Rulebook contains a Static Presentation section per [PaSO Core] Section 5.3, the entry was rendered statically. Verify that the
transaction_dataentry does not carry ametadataparameter, per [PaSO View] Section 5.1. display_locale, if the entry was rendered dynamically: verify that it is either the stringdefaultor a [RFC5646] language tag. If it isdefault, verify that every claimdisplayarray and everyui_labelsentry array of the matched transaction data type in the credential metadata contains a default entry (an entry without alocale). Otherwise, verify that every such array contains an entry whoselocaleequalsdisplay_locale, compared case-insensitively.display_locale, if the entry was rendered statically: verify that it equals one of the language tags defined by the Static Presentation section of the rulebook, compared case-insensitively, per [PaSO View] Section 5.4. The credential metadata is not consulted for this check.jti: verify uniqueness (the Authorizing Party SHOULD maintain a replay cache).-
Ad-hoc metadata: where this step refers to the credential metadata of the matched transaction data type and the
transaction_dataentry in the Authorization Request carries ametadataparameter, the Authorizing Party SHALL instead use thatmetadataobject. Before doing so, it SHALL verify, per [PaSO Proof Metadata] Section 5.3, that theclient_idof the Authorization Request is listed inadhoc_metadata_clientsof the signed credential metadata JWT identified bymetadata_integrity, that the entry'stypeis not listed intransaction_data_typesof that JWT, and that themetadataobject conforms to [PaSO Proof Metadata] Sections 3.1 to 3.3. -
Payload verification: Verify that the
transaction_dataentry'spayloadconforms to the applicable Transaction Data Type Rulebook. The specific checks are defined by the rulebook. Where the type has no rulebook because it is used only with ad-hoc metadata ([PaSO Core] Section 5.1), verify instead that thepayloadconforms to themetadataobject of the entry, per [PaSO Core] Section 7.5 condition 3. -
Risk-signals verification per [PaSO Risk Signals] Section 6:
- Resolve the effective signal set for the matched transaction data type per [PaSO Risk Signals] Section 4.1: the union of every referenced risk signal profile, then tightened by any metadata or rulebook enumeration. Signal types are defined by [PaSO Risk Signal Registry].
- Verify that every signal resolved as required is present in the
risk_signalsclaim, with anystatus. The absence of a signal that did not resolve as required SHALL NOT be treated as a failure. - Verify each envelope is well-formed and that its
collected_atis no older than themax_ageresolved for that signal, measured from the time the proof package was received and allowing for reasonable clock skew and forwarding delay. Where nomax_agewas resolved, the acceptable window is a matter of Transaction Data Type Rulebook or Authorizing Party policy. - When
urn:paso:risk:global:response_mode:1is present, verify that its value matches theresponse_modeof the received Authorization Request. - Interpreting signal values to reach a risk decision is out of scope and left to Authorizing Party policy.
- When encryption is required for the transaction data type, verify that the
risk_signalsvalue is an encrypted structure and reject a plaintext value; the presence, well-formedness, freshness, and signal-specific checks above are performed by the holder of the issuer decryption key after decryption, as defined in [PaSO Risk Signals] Section 6.1.
If any check fails, the Authorizing Party SHALL reject the transaction.
4 Transaction Ingestion Endpoint
This section proposes an HTTP endpoint that an Authorizing Party MAY expose for receiving proof packages. It is a proposal for interoperable forwarding, not the only mechanism. In the third-party flow, forwarding is typically governed by a payment scheme, and a payment scheme or the applicable Transaction Data Type Rulebook MAY define a different mechanism. Sections 2 and 3 apply whichever mechanism is used.
In this section, the sender is the Relying Party or a party forwarding the proof package on its behalf.
4.1 Request
The sender SHALL send an HTTP POST request to the endpoint with:
- Content-Type:
application/jose. - Body: the envelope defined in Section 4.3, which is a signed JWT or a JWE containing it.
The payload of the signed JWT SHALL be a JSON object with the following structure:
{
"signed_request": "<compact-serialised Authorization Request JWT>",
"vp_token": "<vp_token as received from the Wallet>"
}
signed_request: REQUIRED. The signed [OID4VP] Authorization Request in compact JWT serialisation.vp_token: REQUIRED. Thevp_tokenas received from the Wallet.
4.2 Response
The endpoint SHALL respond with:
200 OK— the transaction was accepted.400 Bad Request— the proof package is malformed or a verification check failed. The response body SHOULD be a JSON object with anerrorfield describing the failure.401 Unauthorized— the envelope signature could not be verified, itstypis notpaso-proof-package+jwt, or the Authorizing Party does not trust the certificate chain in itsx5cheader parameter (Section 4.3).409 Conflict— thejtihas already been processed (replay).
4.3 Envelope
The sender SHALL sign the proof package and SHOULD encrypt it.
Signing. The sender SHALL produce a [JWS] in compact serialisation whose payload is the JSON object defined in Section 4.1. The JWS protected header SHALL include:
alg: the signature algorithm;typ: the valuepaso-proof-package+jwt;x5c: the sender's certificate chain, whose leaf certificate contains the signing key.
Encryption. To encrypt, the sender SHALL nest the signed JWT in a [JWE] in compact serialisation, per [JWT] Section 5.2, encrypted to the Authorizing Party's public key so that only the Authorizing Party can decrypt it. The JWE protected header SHALL include alg (key management), enc (content encryption), kid (the Authorizing Party's key), and cty with the value JWT. When encryption is used, the sender and the Authorizing Party SHALL support ECDH-ES key agreement using the P-256 curve with A256GCM content encryption, per [RFC7518], as a baseline. Other algorithms MAY be used when the Authorizing Party's key declares them.
Processing. On receipt, the Authorizing Party SHALL:
- If the body is a JWE (five compact segments), decrypt it and take the plaintext as the signed JWT. If decryption fails, respond
400. - Verify the signed JWT's signature with the key in the leaf certificate of
x5c, verify thattypispaso-proof-package+jwt, and verify that it trusts thex5ccertificate chain. If any of these fails, respond401. - Perform the verification procedure of Section 3 on the proof package in the payload. If it fails, respond
400, or409if the failure is ajtithat has already been processed.
5 References
| Reference | Description |
|---|---|
| [PaSO Core] | PaSO Core |
| [PaSO Proof Metadata] | PaSO Proof: Metadata Module |
| [PaSO View] | PaSO View |
| [PaSO Risk Signals] | PaSO Proof: Risk Signals Module |
| [PaSO Risk Signal Registry] | PaSO Proof: Risk Signal Registry |
| [OID4VP] | OpenID for Verifiable Presentations 1.0 |
| [JAR] | RFC 9101 — JWT-Secured Authorization Request |
| [JWE] | RFC 7516 — JSON Web Encryption |
| [JWS] | RFC 7515 — JSON Web Signature (JWS) |
| [JWT] | RFC 7519 — JSON Web Token (JWT) |
| [RFC7518] | RFC 7518 — JSON Web Algorithms (JWA) |
| [SD-JWT-VC] | SD-JWT-based Verifiable Credentials |
| [mdoc] | ISO/IEC 18013-5:2021 — Mobile driving licence application |
| [RFC2119] | RFC 2119 — Key words for use in RFCs |
| [RFC8174] | RFC 8174 — Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words |
| [RFC5646] | RFC 5646 — Tags for Identifying Languages |
| [W3C.SRI] | Subresource Integrity |