Trust Evaluation
This section defines how trust is established and verified within the APTITUDE ecosystem. It is organized in two parts:
- Core Processes: defines the individual evaluation procedures as self-contained processes, independent of the flow in which they are invoked.
- Trust Checks by Flow: describes how the core processes are performed during the Issuance and Presentation flows.
Core Processes¶
This section describes the Core Trust Evaluation Processes, which establish trust between two interacting entities by verifying their identities against a recognized Trust Anchor and confirming their eligibility to perform a given operation (e.g., issuing or requesting an Attestation of a specific type). These processes are as follows:
- Trust Anchor Validation Process;
- Sign/Seal Validation Process;
- Authentication Process;
- Authorization Process.
The X.509 Certificate Chain Validation process is shared across the Sign/Seal Validation Process, the Authentication Process, and the Authorization Process. It validates a certificate path against the Trust Anchor obtained from a validated LoTE.
Trust Anchor Validation Process¶
The Trust Anchor Validation Process establishes the cryptographic integrity and authenticity of LoTE, which are the authoritative sources for Trust Anchors. A Trust Anchor is an X.509 certificate containing the name and public key used by a Wallet Unit or WRP to validate an artifact or Attestation.
APTITUDE Implementation Choice
All Trust Anchors SHALL be obtained from the applicable dedicated LoTE. This applies to PID Providers, Wallet Providers, Providers of WRPAC, Providers of WRPRC, PuB-EAA Providers, QEAA Providers, EAA Providers, Registrars and their Registers.
Depending on the artifact or Attestation being verified, the validating entity SHALL fetch, download, and validate the dedicated LoTE for the required entity type. The LoTE is used to retrieve Trust Anchors for validating:
- Infrastructure Certificates: WRPACs and WRPRCs.
- Wallet Unit Attestations (WUAs): Key Attestation (KA) and Wallet Instance Attestation (WIA).
- PID Signatures: Person Identification Data (PID).
- Attestation Signatures and Seals: QEAA, EAA, and Pub-EAA.
- Artifacts and Attestation Status and Revocation Information: Status List Token for Attestations, KA, WIA, and WRPRC status information; CRL or OCSP for WRPAC and Sign/Seal Certificate status information.
- Registrar-signed Artifacts: Register information.
APTITUDE Implementation Choice
The Trust Anchors for QEAA Providers and EAA Providers SHALL be retrieved from and validated against their dedicated LoTE. The same LoTE validation process SHALL be used for these Trust Anchors as for all other APTITUDE entities.
To verify the authenticity of a retrieved LoTE, the validating entity SHALL:
- obtain the location and authorized signing certificate set for the requested LoTE type from the Official Journal of APTITUDE (OJA);
- verify the LoTE signature or seal using the format-specific procedure and bind the signer to the certificate set published in the OJA;
- validate the LoTE structure, requested LoTE type, freshness, and any authenticated pivot history.
List of Trusted Entities Validation¶
This section defines the validation of a LoTE. The LoTE format is specified in List of Trusted Entities.
Before validating a LoTE, the Wallet Unit or WRP SHALL select the required LoTE type and obtain its type-specific location and authorized signing certificate set from the OJA. The LoTE SHALL be downloaded from the location published for that type.
List of Trusted Entities Retrieval and Validation Sequence Diagram¶
sequenceDiagram
participant Client as Wallet/WRP
participant OJA as Official Journal of APTITUDE
participant Distribution as LoTE Distribution Point
Client->>OJA: Request discovery for required LoTE type
OJA-->>Client: Return type-specific location and signer certificates
Client->>Distribution: Request LoTE at OJA-published location
Distribution-->>Client: Return JSON/JWT or XML/XAdES LoTE
Client->>Client: Verify format-specific signature and OJA binding
Client->>Client: Validate schema and requested LoTE type
Client->>Client: Discover and validate authenticated pivots
Client->>Client: Extract trust anchors for target entity
List of Trusted Entities Validation Process¶
The validator initializes the following variables:
Input Variables:
Requested-LoTE-Type: The LoTE type required for the artifact or Attestation being validated.OJA-Loc: URI of the latest known OJA publication for the requested LoTE type.OJA-LoTE-Loc: URI of the last processed LoTE instance for the requested type. It is initialized to the location published in the OJA.OJA-LoTE-Certs-Set: The set of certificates authorized by the OJA to verify the requested LoTE type.LoTE: The JSON/JWT or XML/XAdES LoTE currently being processed. Initialized asNULL.LoTE-Format: The format ofLoTE, eitherJSONorXML.LoTE-Signer-Cert: The certificate used to verify the signature or seal onLoTE. Initialized asNULL.LoTESO-Cert: The signer certificate of the current LoTE or pivot. Initialized asNULL.LoTESO-Certs-Set: Certificates authorized by an authenticatedPointersToOtherLoTEentry for the next pivot. Initialized asNULL.
Output Variables:
Authenticated-LoTE: The validated LoTE payload.LoTE-Status: The validation result, for exampleLoTE_VERIFICATION_PASSED.LoTE-Sub-Status: Detailed error codes supplementingLoTE-Status.
JSON LoTE Signature Verification and OJA Binding¶
This procedure applies when the LoTE is JSON formatted and uses the Compact JAdES Baseline B profile. In the APTITUDE profile, x5t#S256 is the selected certificate-reference implementation choice for this format. A Compact JAdES signature is a compact JWS; when the JWT representation is selected, the decoded payload SHALL contain the private LoTE claim defined in the Compact JAdES profile.
The validator SHALL perform the following operations before using any payload value for pivot discovery or trust-anchor extraction:
- Parse the JWS Compact Serialization into its protected header, payload, and signature parts. The protected header SHALL contain
alg,iat, andx5t#S256; an algorithm value ofnoneSHALL be rejected. - Decode
x5t#S256fromBase64urland compute the SHA-256 digest of the DER encoding of each certificate in the authorized certificate set. Exactly one certificate inOJA-LoTE-Certs-SetSHALL match the value. Set that certificate asLoTE-Signer-Cert. - Verify the JWS signature over the JWS Signing Input using the public key in
LoTE-Signer-Cert. - Decode the payload. If the JWT representation is selected, require the private
LoTEclaim. Validate the LoTE object againstLoTE_Payload_Json_schema.yaml; otherwise validate the JSON payload against the applicable JSON LoTE schema. - Confirm that the
LoTETypein the authenticated payload equalsRequested-LoTE-Typeand that theDistributionPointsvalue is the endpoint published by the OJA for that type.
If any operation fails, validation SHALL stop with LoTE-Status set to LoTE_VERIFICATION_FAILED and the applicable signature, certificate-binding, format, or type sub-status.
XML LoTE Signature Verification and OJA Binding¶
This procedure applies when the LoTE is XML formatted and uses XAdES Baseline B. XAdES Baseline B is specified by [ETSI EN 319 132-1]; [ETSI EN 319 132-2] defines extended XAdES signatures and is not the governing specification for the Baseline B profile.
The validator SHALL perform the following operations before using any LoTE value for pivot discovery or Trust Anchor extraction:
- Validate the XML document against the applicable LoTE XML schema and locate the enveloped
ds:Signatureand itsxades:QualifyingProperties. - Validate the XML signature references, including the reference to the LoTE document with
URI="", the enveloped-signature transform, and exclusive XML canonicalization. Validate the reference toxades:SignedPropertieswithType="http://uri.etsi.org/01903#SignedProperties". - Extract the signing certificate from
ds:KeyInfo/ds:X509Data/ds:X509Certificate. The firstxades:SigningCertificateV2/xades:CertSHALL contain the digest of the DER encoding of this certificate. The digest SHALL use SHA-256 and theDigestValueSHALL use the XML signature Base64 encoding. - Compare the extracted certificate, by exact DER certificate identity, with the certificates in
OJA-LoTE-Certs-Set. Set the matching certificate asLoTE-Signer-Cert. - Verify the XML signature using
LoTE-Signer-Cert, including the signed properties and all signed LoTE data objects. - Confirm that the LoTE type in the authenticated XML document equals
Requested-LoTE-Typeand that its distribution point is the endpoint published by the OJA for that type.
If any operation fails, validation SHALL stop with LoTE-Status set to LoTE_VERIFICATION_FAILED and the applicable signature, certificate-binding, format, or type sub-status. XAdES SigningCertificateV2 is not by itself a Trust Anchor; the exact certificate match to the OJA certificate set is required.
LoTE Validation Operations¶
The validation SHALL perform the following steps:
- Initialization. Select the OJA record for
Requested-LoTE-Type, download the JSON/JWT or XML/XAdES file fromOJA-LoTE-Loc, and assign it toLoTE. - Parsing. Set
LoTE-FormattoJSONorXML. For JSON, resolveLoTE-Signer-Certby matching the protectedx5t#S256value against the DER SHA-256 digests of the certificates inOJA-LoTE-Certs-Set. For XML, extract the signing certificate fromds:KeyInfo/ds:X509Data/ds:X509Certificateand match itsxades:SigningCertificateV2DER digest againstOJA-LoTE-Certs-Set. - Pivot Discovery. Iterate through the
uriValueclaims in theSchemeInformationURIobject. Count the number of valid URIs found before encountering the URI matchingOJA-Loc. Let \(n\) be that count.- If no URI matches
OJA-Loc: Validation SHALL fail withLoTE-Statusset toLoTE_VERIFICATION_FAILEDandLoTE-Sub-Statusset toOJA_LOCATION_INPUT_NOT_MATCHING_OJA_LOCATION_IN_LoTE. This implies a Trust Anchor migration is required.
- If no URI matches
- LoTE Location Conflict. Check the condition:
OJA-LoTE-Loc != LoTELocationANDLoTE != Content at LoTELocation.- (
LoTELocationis the URI in thePointersToOtherLoTEclaim ofLoTEwithSchemeTerritory=EU). - If
TRUE: Validation SHALL stop withLoTE-Statusset toLoTE_VERIFICATION_FAILEDandLoTE-Sub-Statusset toLoTE_FILE_CONFLICT. - If
FALSE, proceed to the next step.
- (
- LoTE Freshness. Check the condition:
OJA-LoTE-Loc == LoTELocationANDLoTE !=Content atLoTELocation.- If
TRUE: SetOJA-LoTE-LoctoLoTELocationand restart from Step 1. - If
FALSE, proceed to the next step.
- If
- Digital Signature Validation. Validate the cryptographic signature of the current
LoTEusing the format-specific Compact JAdES or XAdES Baseline B procedure and the public key fromLoTE-Signer-Cert.- If validation fails: Stop with
LoTE-Statusset toLoTE_VERIFICATION_FAILEDandLoTE-Sub-Statusset toLoTE_SIGNATURE_VERIFICATION_FAILED. - If successful:
- Set
LoTESO-CerttoLoTE-Signer-Cert. - Set
LoTESO-Certs-Setto the certificates found in thePointersToOtherLoTEclaim (territoryEU) of the currentLoTEpayload.
- Set
- If validation fails: Stop with
- Intermediate Pivot Validation.
- Case \(n=0\) (No Pivots): Proceed directly to Step 8.
- Case \(n>0\) (History Chain):
- Iterate \(i\) from 1 to \(n\) (from most recent Pivot to oldest). Let
Pivotbe the file downloaded from the \(i\)-th URI. - Link Check. Set
Pivot-Certs-Setto the certificates in thePointersToOtherLoTEclaim (territoryEU) ofPivot. IfLoTESO-Cert(the signer of the previous file in the chain) is not inPivot-Certs-Set, validation SHALL fail withLoTE-Sub-Statusset toPIVOT_i-1_SIGNER_CERT_NOT_AUTHENTICATED_BY_PIVOT_i. - Update Signer. For JSON
Pivot, resolveLoTESO-Certby matching its protectedx5t#S256value againstPivot-Certs-Set. For XMLPivot, extract the signing certificate fromds:KeyInfo/ds:X509Data/ds:X509Certificateand match itsxades:SigningCertificateV2DER digest againstPivot-Certs-Set. - Verify Signature. Validate the signature of
Pivotusing the applicable Compact JAdES or XAdES Baseline B procedure andLoTESO-Cert. If it fails, validation SHALL fail withLoTE-Statusset toLoTE_VERIFICATION_FAILED, andLoTE-Sub-Statusset toPIVOT_i_SIGNATURE_VERIFICATION_FAILED. - The loop continues, walking backwards until
LoTESO-Certrepresents the signer of the oldest Pivot.
- Iterate \(i\) from 1 to \(n\) (from most recent Pivot to oldest). Let
- Trust Anchor Validation. Verify the end of the chain. If
LoTESO-Cert(from the last Pivot or current LoTE) is not inOJA-LoTE-Certs-Set(the Trust Anchor), validation SHALL fail withLoTE-Sub-Statusset toPIVOT_n_SIGNER_CERT_NOT_AUTHENTICATED_BY_OJA. - Expiration. If current time >
NextUpdateclaim ofLoTE, validation SHALL fail. - Success. Set
Authenticated-LoTEtoLoTE,LoTE-StatustoLoTE_VERIFICATION_PASSED, andLoTE-Sub-Statusto an empty list. - Update Bookmark. If
OJA-LoTE-Locdoes not match theLoTELocationinAuthenticated-LoTE(territoryEU), updateOJA-LoTE-Locto that value. - Update Anchor. [Caution: This step modifies the Root of Trust configuration]
- If
OJA-Locdoes not match the first URI inSchemeInformationURI, updateOJA-LoTE-Loc. - Update
OJA-LoTE-Certs-Setaccording to the new Trust Anchor from a new OJA publication for the requested LoTE type.
- If
Warning
The LoTE validation process is mutuated from the [ETSI TS 119 615] standard, and adapted to the APTITUDE profiles context.
Remarks
- The OJA record is type-specific: a validator SHALL NOT use the endpoint or certificate set published for one LoTE type to validate another LoTE type.
- The JSON
x5t#S256value binds the JWS signer to an OJA-published certificate by the SHA-256 digest of its DER encoding. The XMLSigningCertificateV2value provides the corresponding XAdES certificate digest, and the validator additionally performs exact certificate matching against the OJA certificate set. - Payload fields are not trusted for pivot discovery, distribution-point changes, or Trust Anchor extraction until the format-specific signature and OJA certificate binding have succeeded.
- A cached LoTE and its OJA-authorized signer certificate MAY be reused only within the caching rules specified in the LoTE profile; the cache SHALL be refreshed no later than
NextUpdateand when the OJA record changes.
Below is a flowchart summarizing the validation of a LoTE:
flowchart TD
classDef failure fill:#f8d7da,stroke:#721c24,color:#721c24,font-weight:bold;
classDef success fill:#d4edda,stroke:#155724,color:#155724,font-weight:bold;
classDef warning fill:#fff3cd,stroke:#856404,color:#856404;
classDef process fill:#fff,stroke:#333,stroke-width:1px;
classDef decision fill:#e7f3fe,stroke:#0056b3,stroke-width:1px;
Start([Start LoTE JWT Validation]) --> Init[1. Init & Download LoTE<br/>from OJA-LoTE-Loc]:::process
Init --> Parse[2. Parse Header:<br/>Extract Signer Cert x5c]:::process
%% Step 3: Pivot Discovery
Parse --> S3{3. Found OJA-Loc URI in history?}:::decision
S3 -- "No (NotFound)" --> F3[Fail: OJA Loc Not Found<br/>Trust Anchor Migration Needed]:::failure
%% Steps 4 & 5: Location & Freshness Checks
S3 -- "Yes (Set n)" --> S4{4. Location Conflict?<br/>Old-LoTE-Loc != New-LoTE-Loc AND <br/> Old-LoTE != New-LoTE}:::decision
S4 -- Yes --> F4[Fail: File Conflict / Spoofing]:::failure
S4 -- No --> S5{5. Freshness Check<br/>Old-LoTE-Loc == New-LoTE-Loc AND <br/> Old-LoTE != New-LoTE}:::decision
S5 -- "Yes (New Version Detected)" --> UpdateLoc[Update OJA-LoTE-Loc]:::warning
UpdateLoc --> Init
S5 -- "No (Current is Fresh)" --> S6
%% Step 6: Signature & Setup
S6{6. Validate current LoTE Signature}:::decision
S6 -- Invalid --> F6[Fail: LoTE Sig Verification Failed]:::failure
S6 -- Valid --> SetupVars[Set Variables:<br/>Current Signer = LoTE-Signer-Cert<br/>Extract Trusted Set from Payload]:::process
%% Step 7: The Loop
SetupVars --> S7Check{"7. Is n = 0 (no Pivots)?"}:::decision
S7Check -- Yes --> S8
S7Check -- "No (n > 0, Start Loop)" --> LoopStart[Start Pivot Loop i=1 to n]:::process
subgraph Pivot Validation Chain
LoopStart --> DownloadPivot[Download Pivot i]:::process
DownloadPivot --> LinkCheck{Link Check:<br/>Is Current Signer trusted by Pivot i payload?}:::decision
LinkCheck -- No --> FLink[Fail: Broken Trust Chain]:::failure
LinkCheck -- Yes --> UpdateSigner[Update Current Signer:<br/>Extract Signer from Pivot i Header]:::process
UpdateSigner --> SigCheckPivot{Validate Pivot i Signature}:::decision
SigCheckPivot -- Invalid --> FSigPivot[Fail: Pivot Sig Invalid]:::failure
SigCheckPivot -- Valid --> LoopNext{i < n ?<br/>More Pivots?}:::decision
end
LoopNext -- "Yes (i++)" --> DownloadPivot
LoopNext -- No --> S8
%% Step 8: Trust Anchor Validation
S8{8. Trust Anchor Validation:<br/>Is Final Signer in OJA-LoTE-Certs-Set?}:::decision
S8 -- No --> F8[Fail: Not authenticated by OJA]:::failure
%% Step 9: Expiration
S8 -- Yes --> S9{9. Expiration Check:<br/>Now > NextUpdate?}:::decision
S9 -- Yes --> F9[Fail: LoTE Expired]:::failure
%% Step 10: Success
S9 -- No --> Success[10. Validation PASSED]:::success
%% Steps 11 & 12: Updates
Success --> UpdateBM[11. Update Local Bookmark OJA-LoTE-Loc<br/>if changed in payload]:::process
UpdateBM --> UpdateTA[12. Update Trust Anchor Config]:::warning
UpdateTA --> End([End Process])
%% Consolidation of failure endpoints
F3 --> EndFail([Stop: Validation FAILED]):::failure
F4 --> EndFail
F6 --> EndFail
FLink --> EndFail
FSigPivot --> EndFail
F8 --> EndFail
F9 --> EndFail
Sign/Seal Validation Process¶
This process validates the signature on an Attestation (including a WIA) using the appropriate Sign/Seal Certificate. It is invoked during issuance and presentation flows. Sign/Seal Certificate chains are validated with the X.509 Certificate Chain Validation algorithm.
The process is structured as follows.
Input
- The received Attestation and the signer certificate chain carried within it.
- The type of Attestation, used to select the applicable trust source or scheme-specific validation rules.
Outcome
- The validated Attestation, or a validation failure.
Process
Base Signature Validation
The procedure depends on the type of Attestation:
- Verify the Attestation signature with the Sign/Seal Certificate provided in the Attestation.
- Select and validate the applicable trust source:
In this profile, for all credentials and attestation types, namely PID, WIA, QEAA, EAA and PuB-EAA, validate the applicable LoTE as defined in Trust Anchor Validation Process, and extract the appropriate Trust Anchor from the relevant entity's
ServiceDigitalIdentityfield. - Extract the Sign/Seal Certificate chain from the Attestation and validate it against the obtained Trust Anchor using the X.509 Certificate Chain Validation algorithm.
Note
In an mdoc Attestation, the Mobile Security Object carries the Document Signer certificate in the x5chain header. In an SD-JWT VC Attestation, the issuer certificate chain is carried in the x5c header of the JOSE signature.
Authentication Process¶
The Authentication Process enables the Wallet Unit to authenticate a WRP during an interaction. It establishes trust by validating the WRP's X.509 certificate chain, from a trusted Provider of WRPAC to the presented WRPAC, and by verifying that the WRP possesses the corresponding private key. The WRPAC is profiled in Wallet-Relying Party Access Certificate.
For WRPAC validation, the Wallet Unit SHALL accept only the Trust Anchors published in the validated LoTE of a Provider of WRPAC (see Trust Anchor Validation Process).
Input
The Authentication outcome SHALL be based only on information derived from:
- the appropriate Trust Anchor obtained from a valid instance of the Provider of WRPAC LoTE;
- the X.509 certificate path terminating in the WRPAC end-entity certificate; and
- a WRP signature over the interaction artifact, proving possession of the private key referenced in the WRPAC.
Outcome
The Wallet Unit SHALL output either AUTHENTICATED or NON_AUTHENTICATED.
- If the result is
AUTHENTICATED, the Wallet Unit proceeds with the interaction. - If the result is
NON_AUTHENTICATED, the Wallet Unit SHALL inform the user that the WRP identity could not be verified and SHALL stop the interaction.
Process
The Wallet Unit SHALL verify the authenticity and integrity of the presented WRPAC as follows:
- Retrieve the Trust Anchor. Obtain the Provider of WRPAC entry from the validated LoTE. To select the correct entry, match the
issuer.organizationIdentifierof the first certificate in the presented chain with theTrustedEntitiesList[].TrustedEntity.TETradeNamevalue. The certificates inTrustedEntityServices[].ServiceInformation.ServiceDigitalIdentityconstitute the Trust Anchors. - Construct the certification path. Build a path starting with the certificate issued by the Provider of WRPAC (
C_1) and ending with the WRPAC presented by the WRP (C_n). The simplest path consists of a single certificate, wheren = 1. If the received chain is in end-entity-first order, it SHALL be normalized to the path order consumed by the shared validation algorithm. - Execute path validation. Validate the certification path with the retrieved Trust Anchor using the X.509 Certificate Chain Validation algorithm.
- Verify the signature. Use the public key of the validated WRPAC to verify the WRP signature over the artifact signed in the specific interaction. The certificate chain and signed artifact depend on the flow:
- Remote Flow: The chain is carried in the
x5cheader of the WRP-signed Request Object. The WRP is authenticated through thex509_hashClient Identifier Prefix. - Proximity Flow: The chain is carried in the WRP-signed
ReaderAuthelement, in the COSEx5chainheader with label33, of the mdoc request message. - Issuance Flow: The chain is carried in the
x5cheader of the WRP-signed Credential Issuer Metadata.
- Remote Flow: The chain is carried in the
Mitigating Blind Signing Attacks
The WRP SHALL distinguish transient authentication, such as access control, from content commitment, such as non-repudiation. To prevent an attacker from disguising a legal commitment as a protocol nonce, the WRP SHALL NOT use the WRPAC private key to sign arbitrary data controlled by an external party.
Authorization Process¶
This topic defines the common authorization process for issuance and presentation. It is applied after authentication and before an issuance or presentation operation is authorized. The trust-check topics define how the inputs are obtained for each operation; this topic defines how those inputs are evaluated and how the final decision is made.
The certificate, Register, and policy data models remain defined in the WRPRC, Register, and EDP profiles. Transport and artifact placement remain defined in the applicable issuance and presentation trust checks.
Authorization SHALL be evaluated only after the applicable Authentication Process has completed successfully (AUTHZ-GEN-01). The Wallet Unit SHALL use the same authorization process for issuance and presentation, while applying the operation-specific inputs and checks defined below (AUTHZ-GEN-02). A failed authentication or an unavailable authorization input SHALL prevent the operation from being authorized (AUTHZ-GEN-03).
The Authorization Subject is the organization that requests the issuance or presentation operation. For a direct interaction it is the authenticated final RP. For an intermediated interaction it is the final RP identified by the request, not the intermediary (AUTHZ-GEN-04).
Inputs¶
The Authorization Context is the operation-specific data inferred by the Wallet Instance from the authenticated flow inputs. For the presentation flow, it includes request-derived information such as the claimed final RP, intended use, and requested Attestations or claims; it is not, by itself, proof of registration.
An Authorization Artifact is the authoritative transport of entity-specific authorization data. A validated WRPRC is an Authorization Artifact, and a validated Register response MAY serve as an Authorization Artifact when the WRPRC is absent or invalid. Authorization data carried by an Authorization Artifact includes the registered subject, intended use, entitlements, scope, and intermediary relationship. The Wallet Instance combines that authoritative authorization data with the Authorization Context for the subsequent checks.
The applicable trust check process SHALL produce a normalized authorization input set. The input set SHALL contain the following where applicable:
| Input | Source and Use |
|---|---|
| Presentation Request | The request supplies the requested Attestations, claims, intended use, and the final RP identity for presentation (AUTHZ-IN-01). |
| Credential Issuer Metadata | Issuance obtains the Attestation Provider identity, supported Attestation Types, and Attestation Provider authorization data from validated metadata (AUTHZ-IN-02). |
| WRPAC and its trust path | The WRPAC and its validated chain identify and authenticate the RP (AUTHZ-IN-03, AUTHZ-IN-04). |
| WRPRC | The WRPRC carrying authoritative registered RP data and intended use information (AUTHZ-IN-05). |
| Register response | A validated response from the Register can serve as an Authorization Artifact when the WRPRC is absent or invalid (AUTHZ-IN-06). |
| Intended use | The operation's intended use in the Authorization Context is compared with the intended use carried by the Authorization Artifact (AUTHZ-IN-07). |
| Attestation Type | Issuance identifies the requested or supported Attestation Type from the Attestation Provider and RP authorization data (AUTHZ-IN-08). |
| EDP | For presentation, an applicable EDP is evaluated against the operation and the final RP (AUTHZ-IN-09). |
| User setting | For presentation, the Wallet Instance MAY disable the optional requested-scope comparison; the setting is enabled by default (AUTHZ-IN-10). |
The primary Authorization Artifact is the validated WRPRC (AUTHZ-GEN-05). A Register lookup is optional and is not a prerequisite for authorization (AUTHZ-GEN-06). When both a WRPRC and a Register response are available, the Wallet Instance SHALL normalize the authorization data carried by those artifacts and use one consistent Authorization Context for all subsequent checks (AUTHZ-GEN-07).
The authenticated WRPAC-derived identity is authoritative for the authenticated identity. A successfully validated Authorization Artifact is authoritative for the registered authorization data it carries, and a validated EDP is authoritative for its applicable disclosure constraints. Self-declared request data and a request-carried Registrar URL are discovery inputs only; neither is proof of registration. An authoritative value SHALL take precedence over a non-authoritative conflict. A conflict between authoritative identity or binding sources SHALL fail authorization non-overridably. If both WRPRC and Register Authorization Artifacts are used, content validation SHALL use the Register-derived authorization data only when its identity and intermediary-binding data remain consistent with the WRPRC.
Authorization Artifact Validation¶
This process validates the Authorization Artifact and establishes the authoritative authorization data used to complete the Authorization Context. It is the first stage of the common pipeline and SHALL complete before Authorization Content Validation starts.
Input
- A WRPRC obtained from the applicable authenticated issuance or presentation flow, when one is available.
- The applicable Provider of WRPRC LoTE, Trust Anchor, certificate-status information, and current validation time.
- For the optional Register procedure, a discovered Register endpoint, the Authorization Subject identifier, and the applicable intended-use identifier.
Outcome
- A successfully validated WRPRC or Register response establishes the authoritative authorization data without introducing a new positive result code.
- A missing or invalid WRPRC produces the
CERTIFICATE_INVALIDstatus code and permits the optional Register procedure. - If no valid Authorization Artifact is obtained, the stage produces
FAILEDand the final result isNOT_AUTHORIZED.
WRPRC Validation¶
The Wallet Instance SHALL validate a supplied WRPRC before using it as an Authorization Artifact (AUTHZ-GEN-08). The Wallet Instance SHALL perform the following checks in order, following the WRPRC profile and the applicable Trust Anchor Validation Process, X.509 Certificate Chain Validation, and Status Mechanism (AUTHZ-GEN-09):
- Format verification: verify the WRPRC encoding and profile syntax, including
typ = rc-wrp+jwtfor a JWT ortyp = rc-wrp+cwtfor a CWT in the applicable flow, and verify all required profile fields are present and well formed. - Algorithm verification: verify that the declared signature algorithm is permitted by the WRPRC profile and that the object is not unsigned.
- Signature validation: verify the WRPRC signature using the signing certificate carried in the profile-defined certificate-chain member.
- Trust Anchor validation: validate the applicable Provider of WRPRC LoTE and obtain the Trust Anchor from that validated LoTE; a certificate supplied only by the candidate WRPRC SHALL NOT be accepted as the Trust Anchor.
- Certificate path validation: validate the complete signing-certificate path against the obtained Trust Anchor, including certificate signatures, Attestation Provider relationships, validity periods, applicable constraints, certificate policies, and revocation status according to the referenced X.509 process.
- WRPRC temporal validation: verify the required
iatvalue and, when present, theexpvalue against the current validation time. - WRPRC status validation: retrieve the Status List Token from
status.status_list.uri, validate its protected format, signature, signing-certificate path, Trust Anchor, freshness, and data model, and inspect the bit atstatus.status_list.idx;0x00represents a valid WRPRC and0x01represents an invalid WRPRC. - Profile and interaction consistency: verify that the WRPRC subject, intended use, entitlements, registered scope, attestation-provider data, and intermediary data are semantically valid and consistent with the authenticated operation and the applicable request or issuance context.
If the WRPRC is absent or any mandatory validation check fails, the WRPRC Authorization Artifact outcome is CERTIFICATE_INVALID. The Wallet Instance SHALL then either use the optional Register procedure below or terminate Authorization Artifact Validation without a valid Authorization Artifact.
Optional Register Validation¶
The Register procedure is a permitted fallback after a missing or invalid WRPRC, and it is also the only Register operation currently defined by this process (AUTHZ-GEN-10). The Wallet Instance SHALL:
- Discover the endpoint: obtain the Register endpoint from the applicable request or metadata input; a request-carried URL is a discovery hint and is not proof of registration (
AUTHZ-REG-01). - Retrieve the record: use HTTPS and the Register profile's
GET /wrpoperation with the Authorization Subject identifier and intended-use identifier where applicable, requesting the complete registered record rather than a Boolean intended-use result (AUTHZ-REG-02,AUTHZ-ISS-08,AUTHZ-PRES-06). - Verify the response format: require the successful response and media type defined by the Register profile and parse the signed registration statement as the profile-defined JWS representation.
- Verify authenticity and trust: validate the Registrar signature, the Registrar Sign/Seal Certificate, its certificate path, the applicable Registrar LoTE and Trust Anchor, and any profile-defined temporal or status information (
AUTHZ-REG-03,AUTHZ-ISS-09). - Verify pertinence and completeness: verify that the response contains the Authorization Subject, intended use, and all authorization data required by the operation, and that those values match the authenticated interaction and query.
- Normalize the result: normalize the validated record into the same authorization-context model used for a WRPRC (
AUTHZ-REG-04).
A successfully validated Register response is an Authorization Artifact and is authoritative for the authorization data it carries. If the Wallet Instance invokes the Register and retrieval or validation fails, the Authorization Artifact outcome SHALL be FAILED and Authorization Artifact validation SHALL fail. If the Wallet Instance does not invoke the optional procedure, or no valid response is obtained, there is no valid Authorization Artifact; the Authorization Artifact validation stage SHALL terminate with the existing validation outcome FAILED and the final result SHALL be NOT_AUTHORIZED. The earlier WRPRC Authorization Artifact outcome remains CERTIFICATE_INVALID. The Wallet Instance SHOULD notify the User when Register data are used, as specified in RPRC_21.
APTITUDE Implementation Choice
The Register MAY support a future service-binding lookup, but the current profile does not define the service-binding fields or comparison rules. A lookup MAY be performed only after an applicable profile defines its inputs and comparison procedure. An implementation SHALL NOT claim that capability until then; the open service-binding question remains tracked as issue #114.
Authorization Artifact Validation Outcome¶
This validation stage succeeds only when a WRPRC or an authoritative Register response has been fully validated. A validation failure is non-overridable and uses the existing validation outcome FAILED when no valid Authorization Artifact is obtained. The Wallet Instance SHALL NOT continue with binding, entitlement, scope, attestation-type, or EDP checks after an Authorization Artifact validation failure.
Authorization Content Validation¶
The Wallet Instance SHALL perform content validation only after a valid Authorization Artifact has been established. The Wallet Instance SHALL use only the authenticated identity and interaction context, the validated Authorization Artifact, the normalized operation inputs, and a validated applicable EDP. A failure in any non-overridable content check SHALL terminate the pipeline and prevent later checks.
Input
- The authoritative Authorization Context established by the preceding validation stage.
- The authenticated WRPAC identity and the normalized issuance or presentation inputs.
- For presentation, the normalized final Relying Party, intended use, requested Attestations, and requested claims.
- For issuance, the requested Attestation or attestation type and validated Credential Issuer Metadata.
- For presentation, each locally stored EDP associated with a matching Attestation, when one exists.
Process
The following checks SHALL be performed in order. After a binding, intermediary-association, entitlement, or issuance attestation-type failure, the Wallet Instance SHALL stop this process and SHALL NOT perform later checks.
Binding and Intermediary Association¶
The Wallet Instance SHALL ensure that the authenticated entity is the same entity described by the applicable authorization data (AUTHZ-GEN-11). The authenticated WRP identity SHALL be the organizationIdentifier attribute in the subject Distinguished Name of the WRPAC, as defined in [ETSI EN 319 412-1, Clause 5.1.4] and the WRPAC profile in [ETSI TS 119 411-8].
The Wallet Instance SHALL perform the following binding comparisons using the applicable identifier comparison rules:
- Attestation Issuance: match the Attestation Provider identifier with the
subvalue of the WRPRC or, when no WRPRC is available, with the identifier used in the successful Register query, and withissuer_info.data.identifierin the validated Credential Issuer Metadata. A mismatch producesBINDING_FAILED. - Attestation Presentation, direct scenario: first assume the direct scenario and compare the authenticated WRPAC
organizationIdentifierwith the final RP identifier. The final RP identifier SHALL also match the WRPRCsubvalue or, when no WRPRC is available, the identifier used in the successful Register query, and the request identifier:verifier_info.data.identifierin the Remote Flow Request Object ordocRequest.itemsRequest[].requestInfo.EUWrpRegistrarInfo.identifierin the Proximity Flow. If all identifiers match, direct binding succeeds. - Attestation Presentation, intermediated scenario: if the direct comparison fails, the Wallet Instance SHALL attempt the intermediated scenario and compare the authenticated WRPAC
organizationIdentifierwith theintermediary.subvalue carried by the WRPRC or validated Register response. If the intermediary relationship is absent or invalid, the Wallet Instance SHALL produceINTERMEDIARY_NOT_AUTHORIZED(AUTHZ-INT-03). If the relationship is valid, the Wallet Instance SHALL verify that the final RP identifier remains consistent across the request and the authoritative authorization data and SHALL use the final RP for all subsequent authorization decisions (AUTHZ-INT-02). An inconsistent final RP identity producesBINDING_FAILED.
The binding process SHALL use an already-established validated Register context when the WRPRC is unavailable. Binding and intermediary-association failures are non-overridable.
Entitlement¶
The Authorization Context SHALL contain the entitlement required by the operation (AUTHZ-GEN-13). The Wallet Instance SHALL parse the entitlements member of the WRPRC or the profile-defined entitlement member of the validated Register response, normalize the result, and verify that the entitlements of the Authorization Subject match the expected role. Issuance SHALL require the entitlement for the requested Attestation Type (AUTHZ-ISS-01), and presentation SHALL require the service-provider entitlement (AUTHZ-PRES-08).
The expected entitlement URI SHALL be the URI defined for the active role in [ETSI TS 119 475, Annex A.2]. For the roles covered by this process, the expected values are:
- PID Provider during PID Issuance:
https://uri.etsi.org/19475/Entitlement/PID_Provider. - QEAA Provider during QEAA Issuance:
https://uri.etsi.org/19475/Entitlement/QEAA_Provider. - PuB-EAA Provider during PuB-EAA Issuance:
https://uri.etsi.org/19475/Entitlement/PUB_EAA_Provider. - EAA Provider during EAA Issuance:
https://uri.etsi.org/19475/Entitlement/Non_Q_EAA_Provider. - RP during Attestation Presentation:
https://uri.etsi.org/19475/Entitlement/Service_Provider.
The entitlement URI definitions in the WRPRC and Register profiles remain authoritative. The Wallet Instance SHALL compare the expected URI with the authoritative entitlement values using the profile-defined comparison rules. If the expected entitlement is not present, the Wallet Instance SHALL produce WRONG_ENTITLEMENT and terminate authorization non-overridably.
Issuance Attestation Type¶
During Attestation Issuance, the Wallet Instance SHALL verify that the requested PID or Attestation Type is registered for the Attestation Provider. The Wallet Instance SHALL compare the authoritative provides_attestations array from the WRPRC or validated Register response with the keys of credential_configurations_supported in the validated Credential Issuer Metadata (AUTHZ-ISS-02, AUTHZ-ISS-03). For an SD-JWT VC, the comparison SHALL use vct; for an mdoc, it SHALL use docType. The match SHALL be exact and case-sensitive. If the requested type is not registered or not supported, the Wallet Instance SHALL produce ATTESTATION_TYPE_NOT_REGISTERED and terminate authorization non-overridably.
Presentation Scope¶
During Attestation Presentation, the Wallet Instance SHALL verify that the requested Attestations and attributes fall within the registered scope carried in the credentials array of the WRPRC or validated Register response (AUTHZ-PRES-02). The requested-scope comparison is an optional presentation check (AUTHZ-PRES-01).
APTITUDE Implementation Choice
The Wallet Instance SHALL offer the setting enabled by default and the setting SHALL affect only this comparison (AUTHZ-PRES-04).
When scope comparison is enabled, the Wallet Instance SHALL apply the flow-specific extraction and matching rules:
- For the Remote Flow, extract the requested Attestations and attributes from
dcql_queryin the Request Object and compare them with the registeredcredentialsentries, includingformat,metaand, for SD-JWT VC,vct_values, and compare requested attributes with the registeredclaimpaths. - For the Proximity Flow, extract
docTypeandnameSpacesfrom thedocRequestsof the mdoc Request and compare them withcredentials[].meta.doctype_valueandcredentials[].claim, respectively.
Every Attestation, format, type, and claim-path match SHALL be exact and case-sensitive. The Wallet Instance SHALL identify every requested Attestation or attribute for which no registered scope entry matches. If all checks applicable to the interaction succeed, the scope outcome is VERIFICATION_PASSED; if any requested Attestation or attribute is not registered, the Wallet Instance SHALL produce OVERASKING_DETECTED and identify the unregistered items (AUTHZ-PRES-09). When the User disables the setting, the Wallet Instance SHALL skip only the scope comparison without treating the request as failed.
Embedded Disclosure Policy¶
For presentation, EDP evaluation is performed only after context, binding, intermediary association, entitlement, and any enabled scope checks have completed.
EDP evaluation applies to QEAA, PuB-EAA, and EAA. PID does not assume or require an EDP (AUTHZ-EDP-01). For each matching presentation Attestation, the Wallet Instance SHALL perform the following checks against the locally stored EDP, if any:
- If no EDP is stored for the Attestation, this check is superseded and the EDP outcome is
EDP_SATISFIED(AUTHZ-EDP-03). - Read the EDP
policy_typedefined in [ETSI TS 119 472-3, Section 4.2.5]. Forno_policy, no restriction applies and the EDP outcome isEDP_SATISFIED. - For
authorized_rp_only, compare the direct or final RP's WRPAC subject DN with theauthorized_parties[].subject_dnentries and compare the RP's authoritative entitlements or sub-entitlements with theauthorized_parties[].entitlement_urientries. A match on either supported criterion is sufficient. The Wallet Instance SHALL NOT use the Intermediary identity as a substitute (AUTHZ-EDP-04). - For
specific_root_of_trust, verify that the direct or final RP's WRPAC chain or the Provider of WRPRC root selected for that final RP contains one of the policy'strusted_roots. The Wallet Instance SHALL compareissuer_dnusing LDAP DN comparison andserial_numberusing integer comparison, and SHALL NOT use the intermediary trust root as a substitute (AUTHZ-EDP-05). - Evaluate the policy's authorized RP, Attestation, and claim constraints against the final RP and the operation (
AUTHZ-EDP-06). - If every applicable policy check succeeds, set the EDP outcome to
EDP_SATISFIED; otherwise set it toEDP_NOT_SATISFIED. The Wallet Instance SHALL present the applicable policy meaning, requested disclosures, and explanatory link when present in the confirmation UI (AUTHZ-EDP-07). - If the User rejects an applicable EDP disclosure, set the EDP outcome to
EDP_NOT_SATISFIED(AUTHZ-EDP-08).EDP_NOT_SATISFIEDis an overridable presentation outcome only after all non-overridable checks have passed (AUTHZ-EDP-09).
Authorization Decision and Override¶
The Wallet Instance SHALL produce the binary result AUTHORIZED or NOT_AUTHORIZED (AUTHZ-UI-01). User-relevant limitations SHALL be represented as advisories (AUTHZ-UI-02).
The Wallet Instance SHALL display all results and advisories with the requested attributes and request User approval (AUTHZ-UI-03, AUTHZ-UI-07).
User approval SHALL remain a separate step from the authorization decision (AUTHZ-UI-04), and the process SHALL support transparent decision-making (AUTHZ-UI-05).
The final result is determined as follows:
| Conditions | Final Result |
|---|---|
| No valid Authorization Artifact or authoritative authorization data, Register failure, binding failure, invalid intermediary association, wrong entitlement, unsupported issuance Attestation Type, or any other non-overridable failure | NOT_AUTHORIZED (AUTHZ-UI-06) |
| Issuance with a valid Authorization Artifact and resulting Authorization Context, binding, entitlement, and supported attestation type | AUTHORIZED |
Presentation with a valid Authorization Artifact and resulting Authorization Context, binding, intermediary association where applicable, entitlement, scope passed or skipped, and EDP_SATISFIED |
AUTHORIZED |
Presentation with only OVERASKING_DETECTED and/or EDP_NOT_SATISFIED remaining |
NOT_AUTHORIZED until the user accepts the applicable override |
In an intermediated presentation, missing final RP information, missing authoritative data, binding failure, and negative scope or EDP outcomes are negative cases for the final RP (AUTHZ-INT-06).
The Wallet Instance SHALL display the final RP identity and intended use. It SHALL NOT display the Intermediary identity (AUTHZ-UI-08).
A non-overridable failure SHALL be clearly identified and SHALL NOT be presented as user-overridable.
If the result is AUTHORIZED, the Wallet Instance SHALL proceed to normal User approval (AUTHZ-UI-10). If the result is NOT_AUTHORIZED and only overridable presentation outcomes remain, the Wallet Instance SHALL present the negative outcome and SHALL allow continuation if the User accepts every applicable override (AUTHZ-UI-11).
All issuance failures are non-overridable. Only presentation scope overasking and EDP failure MAY be overridden.
The Wallet Instance SHALL record and enforce the final decision. A successful authorization produces AUTHORIZED; a rejected or failed authorization produces NOT_AUTHORIZED.
Phase Applicability¶
Issuance¶
Before running the common pipeline, the Wallet Instance SHALL retrieve and validate Credential Issuer Metadata, including its signature, trust chain, and metadata content (AUTHZ-ISS-04, AUTHZ-ISS-05, AUTHZ-ISS-06). It SHALL extract the Attestation Provider authorization data needed by the common pipeline (AUTHZ-ISS-07). The detailed sequence is defined in Trust Checks for Issuance.
After successful authorization, the Wallet Instance SHALL show the Attestation Provider, Attestation Type, service description, and applicable advisories before user confirmation (AUTHZ-UI-09). If an EDP is accepted, the issuance process SHALL retain it with the authorization and Attestation result (AUTHZ-ISS-10).
Presentation¶
Remote and Proximity presentation use the same common pipeline (AUTHZ-PRES-03). Remote presentation obtains and validates the request-derived Authorization Context and Authorization Artifact through its defined transport and trust checks (AUTHZ-PRES-10). Proximity presentation applies the corresponding device and transport checks; it SHALL retain the profile's limitation on the available proximity association evidence (AUTHZ-PRES-11).
Presentation Request extraction SHALL produce the normalized requested attributes and intended use before content validation (AUTHZ-PRES-05). An intermediated presentation SHALL use the final Relying Party and its validated association for the common pipeline (AUTHZ-INT-04). The final RP identity is displayed; the Intermediary identity is not displayed (AUTHZ-INT-05). The detailed sequence is defined in Trust Checks for Presentation.
Result Codes¶
The process uses the following existing artifact, validation, and final outcomes, grouped by the stage that produces them.
Authorization Artifact Validation Outcomes¶
| Outcome | Meaning |
|---|---|
CERTIFICATE_INVALID |
The supplied WRPRC Authorization Artifact is absent or invalid; the optional Register Authorization Artifact fallback may be attempted. |
FAILED |
Authorization Artifact validation failed because no valid Authorization Artifact was obtained; an invoked Register retrieval or validation failure produces this outcome. |
Content Validation Outcomes¶
| Outcome | Meaning |
|---|---|
BINDING_FAILED |
The authenticated, requested, and registered identities do not bind. |
INTERMEDIARY_NOT_AUTHORIZED |
The intermediary-to-final-party association is absent or invalid. |
WRONG_ENTITLEMENT |
The Authorization Context does not contain the required entitlement. |
ATTESTATION_TYPE_NOT_REGISTERED |
Issuance Attestation Type is not registered or supported. |
VERIFICATION_PASSED |
Presentation requested-scope comparison passed. |
OVERASKING_DETECTED |
Presentation requested scope exceeds Attestation scope. |
EDP Outcomes¶
| Outcome | Meaning |
|---|---|
EDP_SATISFIED / EDP_NOT_SATISFIED |
EDP evaluation passed or failed. |
Final Decisions¶
| Outcome | Meaning |
|---|---|
AUTHORIZED / NOT_AUTHORIZED |
Final operation decision. |
Authorization Requirements¶
The following table restores the implementation and conformance mapping from the former requirements table with the updated authorization meanings. The normative clauses above remain authoritative; this table does not create additional requirements.
| ID | Updated Requirement | Phase | Canonical Clause |
|---|---|---|---|
AUTHZ-GEN-01 |
Authorization is evaluated only after successful authentication. | Both | Scope and Preconditions |
AUTHZ-GEN-02 |
The same authorization process is used for issuance and presentation with operation-specific inputs and checks. | Both | Scope and Preconditions |
AUTHZ-GEN-03 |
Failed authentication or unavailable authorization input prevents authorization. | Both | Scope and Preconditions |
AUTHZ-GEN-04 |
The Authorization Subject is selected according to direct or intermediated interaction rules. | Both | Scope and Preconditions |
AUTHZ-GEN-05 |
The validated WRPRC is the primary Authorization Artifact. | Both | Inputs |
AUTHZ-GEN-06 |
Register lookup is optional and is not a prerequisite for authorization. | Both | Inputs |
AUTHZ-GEN-07 |
Authorization data carried by WRPRC and Register artifacts are normalized into one consistent Authorization Context when both are available. | Both | Inputs |
AUTHZ-GEN-08 |
A supplied WRPRC is validated before it is used as an Authorization Artifact. | Both | WRPRC Validation |
AUTHZ-GEN-09 |
WRPRC validation includes authenticity, status, validity, and scenario-coherence checks. | Both | WRPRC Validation |
AUTHZ-GEN-10 |
The defined Register procedure is an optional fallback after missing or invalid WRPRC. | Both | Optional Register Validation |
AUTHZ-GEN-11 |
Authenticated identity, Authorization Context, and authorization data carried by the Authorization Artifact are compared with the operation request. | Both | Binding and Intermediary Association |
AUTHZ-GEN-12 |
Direct and intermediated interactions use their respective identity and association rules. | Both | Binding and Intermediary Association |
AUTHZ-GEN-13 |
The Authorization Context contains the entitlement required by the operation. | Both | Entitlement |
AUTHZ-IN-01 |
The presentation request supplies requested Attestations, claims, intended use, and final RP identity. | Presentation | Inputs |
AUTHZ-IN-02 |
Validated Credential Issuer Metadata supplies issuance identity, supported types, and authorization data. | Issuance | Inputs |
AUTHZ-IN-03 |
The validated WRPAC context identifies and authenticates the RP. | Both | Inputs |
AUTHZ-IN-04 |
The validated WRPAC trust path supports RP authentication. | Both | Inputs |
AUTHZ-IN-05 |
WRPRC supplies registered RP context and intended-use information. | Both | Inputs |
AUTHZ-IN-06 |
A validated Register response can serve as an Authorization Artifact when WRPRC is absent or invalid. | Both | Inputs |
AUTHZ-IN-07 |
Intended use is compared with the request-derived Authorization Context and the Authorization Artifact. | Both | Inputs |
AUTHZ-IN-08 |
Issuance identifies the requested or supported Attestation Type from Attestation Provider and authorization data. | Issuance | Inputs |
AUTHZ-IN-09 |
Presentation evaluates an applicable EDP against the operation and final RP. | Presentation | Inputs |
AUTHZ-IN-10 |
The default-enabled User setting controls only optional requested-scope comparison. | Presentation | Inputs |
AUTHZ-UI-01 |
The Wallet Instance produces the binary result AUTHORIZED or NOT_AUTHORIZED. |
Both | Authorization Decision and Override |
AUTHZ-UI-02 |
User-relevant limitations are represented as advisories. | Both | Authorization Decision and Override |
AUTHZ-UI-03 |
Results and advisories are displayed with the requested attributes and User approval is requested. | Presentation | Authorization Decision and Override |
AUTHZ-UI-04 |
User approval remains separate from the authorization decision. | Both | Authorization Decision and Override |
AUTHZ-UI-05 |
Authorization supports transparent decision-making. | Both | Authorization Decision and Override |
AUTHZ-UI-06 |
Authorization Artifact, Authorization Context, binding, intermediary, entitlement, attestation-type, Register, and other non-overridable failures produce NOT_AUTHORIZED. |
Both | Authorization Decision and Override |
AUTHZ-UI-07 |
Presentation displays all results and advisories and requests User approval. | Presentation | Authorization Decision and Override |
AUTHZ-UI-08 |
Presentation displays the final RP identity and does not display the intermediary identity. | Presentation | Authorization Decision and Override |
AUTHZ-UI-09 |
Issuance displays the Attestation Provider, Attestation Type, service description, and applicable advisories before confirmation. | Issuance | Issuance |
AUTHZ-UI-10 |
An AUTHORIZED result proceeds to normal User approval. |
Both | Authorization Decision and Override |
AUTHZ-UI-11 |
Continuation after an overridable presentation failure may be offered after the User accepts every applicable override. | Presentation | Authorization Decision and Override |
AUTHZ-UI-12 |
Continuation is prohibited when a NOT_AUTHORIZED result contains a non-overridable failure. |
Both | Authorization Decision and Override |
AUTHZ-ISS-01 |
Issuance requires the entitlement for the requested Attestation Type. | Issuance | Entitlement |
AUTHZ-ISS-02 |
Issuance compares the requested Attestation Type with registered provides_attestations information. |
Issuance | Issuance Attestation Type |
AUTHZ-ISS-03 |
Issuance compares the requested Attestation Type with Credential Issuer Metadata support. | Issuance | Issuance Attestation Type |
AUTHZ-ISS-04 |
The Wallet Instance retrieves and validates Credential Issuer Metadata. | Issuance | Issuance |
AUTHZ-ISS-05 |
The Wallet Instance validates the metadata signature and WRPAC trust chain. | Issuance | Issuance |
AUTHZ-ISS-06 |
The Wallet Instance validates metadata content and supported-credential declarations. | Issuance | Issuance |
AUTHZ-ISS-07 |
The Wallet Instance extracts Attestation Provider authorization data needed by the common process. | Issuance | Issuance |
AUTHZ-ISS-08 |
The optional Register fallback uses the defined Authorization Artifact retrieval operation after invalid or absent WRPRC. | Issuance | Optional Register Validation |
AUTHZ-ISS-09 |
The Register response used by issuance is authenticated, validated, and complete. | Issuance | Optional Register Validation |
AUTHZ-ISS-10 |
An accepted EDP is retained with the authorization and Attestation result. | Issuance | Issuance |
AUTHZ-PRES-01 |
Presentation scope comparison is optional. | Presentation | Presentation Scope |
AUTHZ-PRES-02 |
Enabled scope comparison uses exact, case-sensitive matching of normalized requested attributes. | Presentation | Presentation Scope |
AUTHZ-PRES-03 |
Remote and Proximity presentation use the same common authorization pipeline. | Presentation | Presentation |
AUTHZ-PRES-04 |
The default-enabled User setting affects only scope comparison and cannot disable other checks. | Presentation | Presentation Scope |
AUTHZ-PRES-05 |
Presentation request extraction produces normalized requested attributes and intended use before content validation. | Presentation | Presentation |
AUTHZ-PRES-06 |
The optional Register fallback retrieves and validates an Authorization Artifact when WRPRC is absent or invalid. | Presentation | Optional Register Validation |
AUTHZ-PRES-07 |
Presentation applies direct or intermediated binding and association checks. | Presentation | Binding and Intermediary Association |
AUTHZ-PRES-08 |
Presentation requires the service-provider entitlement. | Presentation | Entitlement |
AUTHZ-PRES-09 |
Presentation reports the requested-scope comparison result and unmatched items. | Presentation | Presentation Scope |
AUTHZ-PRES-10 |
Remote presentation obtains and validates the request-derived Authorization Context and Authorization Artifact through its defined flow. | Presentation | Presentation |
AUTHZ-PRES-11 |
Proximity presentation applies its defined device, transport, and association-evidence limitations. | Presentation | Presentation |
AUTHZ-INT-01 |
The Wallet Instance determines whether presentation is direct or intermediated. | Presentation | Binding and Intermediary Association |
AUTHZ-INT-02 |
Intermediated authorization validates the intermediary-to-final-party association and uses the final RP for decisions. | Presentation | Binding and Intermediary Association |
AUTHZ-INT-03 |
An absent or invalid intermediary association produces INTERMEDIARY_NOT_AUTHORIZED. |
Presentation | Binding and Intermediary Association |
AUTHZ-INT-04 |
Intermediary handling applies to both Remote and Proximity presentation. | Presentation | Presentation |
AUTHZ-INT-05 |
Intermediated presentation displays the final RP and not the Intermediary. | Presentation | Presentation |
AUTHZ-INT-06 |
Missing final-party data, authoritative data, binding, scope, or EDP outcomes are negative final-party cases. | Presentation | Authorization Decision and Override |
AUTHZ-INT-07 |
Intermediated override is limited to negative scope and EDP outcomes. | Presentation | Authorization Decision and Override |
AUTHZ-REG-01 |
The Register endpoint is discovered from applicable request or metadata input without treating its URL as registration proof. | Both | Optional Register Validation |
AUTHZ-REG-02 |
The Wallet Instance retrieves the complete Register record over HTTPS using GET /wrp, Authorization Subject, and intended use. |
Both | Optional Register Validation |
AUTHZ-REG-03 |
The Wallet Instance validates Register authenticity, trust, freshness, status, subject, intended use, and completeness. | Both | Optional Register Validation |
AUTHZ-REG-04 |
Validated Register data are normalized into the WRPRC-derived Authorization Context model. | Both | Optional Register Validation |
AUTHZ-EDP-01 |
EDP applies to QEAA, PuB-EAA, and EAA attestations and is not assumed for PID. | Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-02 |
Issuance retains an accepted EDP and does not evaluate it. | Issuance | Embedded Disclosure Policy |
AUTHZ-EDP-03 |
No applicable EDP or a passing policy produces EDP_SATISFIED. |
Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-04 |
Authorized RP Only evaluates the direct or final RP, not the intermediary. |
Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-05 |
Specific Root of Trust evaluates the direct or final-party trust root, not the intermediary root. | Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-06 |
EDP constraints are evaluated against the final RP and operation. | Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-07 |
Applicable EDP meaning, disclosures, and explanatory links are presented in the confirmation UI. | Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-08 |
Rejecting an applicable EDP disclosure produces EDP_NOT_SATISFIED. |
Presentation | Embedded Disclosure Policy |
AUTHZ-EDP-09 |
EDP_NOT_SATISFIED is overridable only after all non-overridable checks pass. |
Presentation | Embedded Disclosure Policy |
X.509 Certificate Chain Validation¶
Certificate Path Validation¶
The entity that performs the certificate path validation initializes the following variables according to [RFC 5280]:
path: The sequence \(C_1 \dots C_n\).trust_anchor: trusted certificate obtained from theServiceDigitalIdentitycomponent after validation of the relevant LoTE.current_time: The current date and time.
Note
The profiles for Trust Anchor Certificates referenced within a LoTE are described in Trust Anchor Certificate.
The entity that performs the certificate path validation follows the algorithm described below [RFC 5280]:
Step 1: Initialization Initialize the state variables:
valid_policy_tree: A single node (depth 0,valid_policy=anyPolicy,qualifier_set={},expected_policy_set={anyPolicy}).explicit_policy(how many certificates in the chain are allowed to lack a specific, valid policy): \(n+1\).inhibit_any_policy(how many certificates are allowed to use theanyPolicyOID): \(n+1\) (no inhibition of policies allowed).policy_mapping: \(n+1\) (no policy mapping allowed).working_public_key: The public key of thetrust_anchor.working_public_key_parameters: The parameters of thetrust_anchorpublic key.working_issuer_name: The subject Distinguished Name (DN) of thetrust_anchor.max_path_length: \(n\).
Step 2: Certificate Processing Iterate through the path for \(i\) from \(1\) to \(n\):
- Basic Integrity & Binding Checks:
- Verify the signature of \(C_i\) using
working_public_key,working_public_key_parameters, and the algorithm identifier. - Ensure
current_timefalls within thenotBeforeandnotAftervalidity period of \(C_i\). - Check revocation status (CRL or OCSP) as defined in Revocation Checking.
- Verify that the issuer name of \(C_i\) matches
working_issuer_name.
- Verify the signature of \(C_i\) using
- Policy Processing:
- If
certificatePoliciesextension is present andvalid_policy_treeis not NULL:- Process policy constraints, qualifiers, and mappings according to [RFC 5280, Section 6.1.3].
- for each policy \(P\) not equal to
anyPolicyin the certificate policies extension, let \(P\)-OID denote the OID for policy \(P\) and \(P\)-Q denote the qualifier set for policy \(P\).- for each node of depth \(i-1\) in the
valid_policy_treewhere \(P\)-OID is in the node'sexpected_policy_set, create a child node withvalid_policy\(P\)-OID,qualifier_set\(P\)-Q, andexpected_policy_setset to {\(P\)-OID}. - If no match is found for \(P\)-OID in any node of depth \(i-1\) and the
valid_policy_treehas a node of depth \(i-1\) withvalid_policyset toanyPolicy, generate a child node withvalid_policy\(P\)-OID,qualifier_set\(P\)-Q, andexpected_policy_setset to {anyPolicy}.
- for each node of depth \(i-1\) in the
- if the
certificatePoliciesextension containsanyPolicywith the qualifier set \(AP\)-Q, \(i \leq n\), and the certificate is self issued, then for each node of depth \(i-1\) in thevalid_policy_treeand each value in theexpected_policy_setof that node, generate a child node withvalid_policyandexpected_policy_setset to theexpected_policy_setvalue, set thequalifier_setset to \(AP\)-Q. - Update the
valid_policy_treeby pruning nodes that do not match the policies in \(C_i\).
- If
certificatePoliciesis missing, setvalid_policy_treeto NULL.
- If
- Policy State Verification:
- Verify that either
explicit_policy > 0ORvalid_policy_treeis not NULL. If this fails, abort.
- Verify that either
Step 3: Preparation for Next Certificate
- If \(i < n\) (i.e., \(C_i\) is an intermediate CA), perform the following updates:
- Set
working_issuer_nameto the Subject DN of \(C_i\). - Set
working_public_keyto the Subject Public Key of \(C_i\). - Update
working_public_key_parametersandworking_public_key_algorithmfrom \(C_i\).
- Set
- Constraint Checks (Intermediates Only):
- Verify
basicConstraintsextension is present andcAis set to TRUE. - If
keyUsageextension is present, verify thekeyCertSignbit is set. - Path Length: Verify
max_path_length> 0. Decrementmax_path_lengthby 1.- If \(C_i\) contains
pathLenConstraint, setmax_path_lengthto \(\min(\text{current}, \text{pathLenConstraint})\).
- If \(C_i\) contains
- Verify
- Policy Counters:
- Decrement
explicit_policyandinhibit_any_policy(if > 0).
- Decrement
Step 4: Wrap-up After processing \(C_n\):
- If
explicit_policy> 0, decrement it. - If
explicit_policy> 0 ORvalid_policy_treeis not NULL, the path isVALID. - Otherwise, the path is
INVALID.
The following diagram describes the process for the validation of a certificate chain.
flowchart TD
Start([Start Validation]) --> DefineInputs[Inputs:<br/>path C1..Cn, trust_anchor, current_time]
%% Step 1: Initialization
DefineInputs --> Step1[Step 1: Initialization<br/>Initialize state variables:<br/>valid_policy_tree, explicit_policy=n+1,<br/> inhibit_any_policy=n+1, policy_mapping=n+1, <br/> working_public_key,<br/>working_public_key_parameters, <br/> working_issuer_name, max_path_length=n, etc.]
Step1 --> SetIndex[Set loop index i = 1]
%% Start Loop
SetIndex --> LoopCondition{Is i <= n?}
%% Loop Body - Step 2: Certificate Processing
LoopCondition -- Yes --> GetCi[Process Certificate Ci]
GetCi --> Step2_1[Step 2.1: Basic Integrity & Binding Checks<br/><br/>- Verify signature using working_public_key<br/>- Check validity period against current_time<br/>- Check revocation status<br/>- Verify issuer name matches working_issuer_name]
Step2_1 --> Check2_1{Basic Checks Pass?}
Check2_1 -- No --> AbortFailure([Validation FAILED])
Check2_1 -- Yes --> Step2_2[Step 2.2: Policy Processing<br/>- If present, process certificatePolicies<br/>- Update/prune valid_policy_tree based on Ci]
Step2_2 --> Step2_3[Step 2.3: Policy State Verification<br/>Check if explicit_policy > 0 OR valid_policy_tree is not NULL]
Step2_3 --> Check2_3{Policy State Verified?}
Check2_3 -- No --> AbortPolicy([Validation FAILED])
%% Loop Body - Step 3: Preparation for Next Certificate
Check2_3 -- Yes --> CheckIntermediate{Is i < n?<br/>Intermediate CA check}
%% Branch: Intermediate CA (i < n)
CheckIntermediate -- Yes --> Step3_1[Step 3.1: Update Working State<br/><br/>- Update working_issuer_name from Ci<br/>- Update working_public_key parameters from Ci]
Step3_1 --> Step3_2[Step 3.2: Constraint Checks<br/>- Verify basicConstraints cA=TRUE<br/>- Verify keyUsage keyCertSign bit<br/>- Verify max_path_length > 0, decrement it<br/>- Handle pathLenConstraint if present]
Step3_2 --> Check3_2{Constraints Pass?}
Check3_2 -- No --> AbortConstraints([Validation FAILED])
Check3_2 -- Yes --> Step3_3[Step 3.3: Policy Counters<br/>Decrement explicit_policy and inhibit_any_policy if > 0]
Step3_3 --> IncrementIndex
%% Branch: Target Certificate (i = n) skip Step 3
CheckIntermediate -- No (Target Cert Cn)--> IncrementIndex[Increment i : i = i + 1]
%% Loop back
IncrementIndex --> LoopCondition
%% Loop Finished - Step 4: Wrap-up
LoopCondition -- No --> Step4_1[Step 4. Wrap-up<br/>If explicit_policy > 0, decrement it.]
Step4_1 --> FinalDecision{Final Decision:<br/>Is explicit_policy > 0 OR<br/>valid_policy_tree is NOT NULL?}
FinalDecision -- Yes --> Success([Path Validation SUCCESSFUL])
FinalDecision -- No --> Failure([Path Validation FAILED])
%% Styling
classDef process fill:#e1f5fe,stroke:#01579b,stroke-width:1px;
classDef decision fill:#fff9c4,stroke:#fbc02d,stroke-width:1px;
classDef terminator fill:#dcedc8,stroke:#33691e,stroke-width:2px;
classDef abort fill:#ffcdd2,stroke:#b71c1c,stroke-width:2px;
class Step1,SetIndex,GetCi,Step2_1,Step2_2,Step2_3,Step3_1,Step3_2,Step3_3,IncrementIndex,Step4_1 process;
class LoopCondition,Check2_1,Check2_3,CheckIntermediate,Check3_2,FinalDecision decision;
class Start,DefineInputs,Success terminator;
class AbortFailure,AbortPolicy,AbortConstraints,Failure abort;
Revocation Checking¶
The entity performing certificate path validation (e.g., the Wallet Unit) SHALL determine the revocation status for every certificate in the path with one of the following methods:
- If the certificate contains the
noRevAvailextension AND theext-etsi-valassured-ST-certsextension (see Wallet-Relying Party Access Certificate), revocation checking SHOULD be skipped (as the certificate's status is determined solely by validity period). - If the
cRLDistributionPointsextension is present, the Wallet Unit MAY retrieve and validate the CRL. - If the
authorityInfoAccessextension (withid-ad-ocsp) is present, the Wallet Unit MAY perform an OCSP lookup.
For details regarding the formats and parameters of CRLs and OCSP responses, see Revocation Mechanism.
CRL Validation¶
When using a CRL, the Wallet Unit SHALL:
- Verify
current_timeis betweenthisUpdateandnextUpdate. If the CRL is expired, the Wallet Unit SHOULD attempt to retrieve an updated CRL. - Verify the CRL is signed by the certificate issuer (or an authorized CRL issuer) by:
- matching the
issuerfield of the CRL with theissuerfield of the certificate being checked;
- matching the
- Verify the
issuingDistributionPointmatches the certificate's distribution point.distributionPointfield of thecRLDistributionPointsextension matches thedistributionPointfield of theIssuingDistributionPointextension of the CRL (if present);- if the
BasicConstraintsextension is present in the certificate being checked, and hascAset toTRUE(respectivelyFALSE), the CRL Issuing Distribution Point extension SHALL have theonlyContainsCACertsfield set toTRUE(respectively have theonlyContainsUserCertsfield set toTRUE)
- Validate the CRL signature using the issuer's public key. If a key usage extension is present in the CRL issuer's certificate, verify that the
cRLSignbit is set. - Check if the certificate's serial number is listed in
revokedCertificates. If an entry is found then the certificate status is set torevoked.
Note
In this case it is assumed that the issuer of both the CRL and certificate do coincide, and that the CRL is not signed by a delegated CRL issuer.
If any of the steps 1-4 fail or the CRL is unavailable, the Wallet Unit SHALL consider the certificate status as unknown. When all steps 1-4 succeed and the certificate serial number is not found in the CRL, the certificate SHALL be considered good.
flowchart TD
Start([Start CRL Validation]) --> Step1{Step 1: Time Check<br/>Is current_time between<br/>thisUpdate and nextUpdate?}
%% Step 1: Time Verification and Update Logic
Step1 -- Yes --> Step2
Step1 -- No --> FetchUpdate[Attempt to retrieve updated CRL]
FetchUpdate --> GotUpdate{Update Retrieved?}
GotUpdate -- Yes --> Step1
GotUpdate -- No --> Revoked([Certificate status: unknown<br/>Reason: CRL Expired/Unavailable])
%% Step 2: Issuer Verification
Step2[Step 2: Verify Issuer] --> CheckIssuer{Does CRL Issuer match<br/>Certificate Issuer?}
CheckIssuer -- Yes --> Step3
CheckIssuer -- No --> Revoked2([Certificate status: UNKNOWN<br/>Reason: Issuer Mismatch])
%% Step 3: Distribution Point Verification
Step3[Step 3: Verify Distribution Point] --> CheckDP{Do Distribution Points match?}
CheckDP -- No --> Revoked3([Certificate status: UNKNOWN<br/>Reason: Distribution Point Mismatch])
CheckDP -- Yes --> CheckBasicConstraints{Check BasicConstraints}
CheckBasicConstraints -- Certificate<br/>has `CA=TRUE` --> CheckCRL_CA{Is CRL onlyContainsCACerts=TRUE?}
CheckBasicConstraints -- Certificate defaults<br/>to `CA=FALSE` --> CheckCRL_User{Is CRL onlyContainsUserCerts=TRUE?}
CheckCRL_CA -- No --> Revoked3
CheckCRL_User -- No --> Revoked3
CheckCRL_CA -- Yes --> Step4
CheckCRL_User -- Yes --> Step4
%% Step 4: Signature & Key Usage
Step4[Step 4: Signature & Key Usage] --> ValidateSig{Validate CRL Signature}
ValidateSig -- Invalid --> Revoked4([Certificate status: UNKNOWN<br/>Reason: Invalid CRL Signature])
ValidateSig -- Valid --> CheckKeyUsage{If KeyUsage present:<br/>Is cRLSign bit set?}
CheckKeyUsage -- No --> Revoked4
CheckKeyUsage -- Yes --> Step5
%% Step 5: Revocation Lookup
Step5[Step 5: Revocation Lookup] --> LookupSerial{Is Certificate Serial Number<br/>in revokedCertificates?}
LookupSerial -- Yes --> Revoked5([Certificate status: REVOKED])
LookupSerial -- No --> Valid([Certificate status: GOOD])
%% Styling
classDef process fill:#e1f5fe,stroke:#01579b,stroke-width:1px;
classDef decision fill:#fff9c4,stroke:#fbc02d,stroke-width:1px;
classDef valid fill:#dcedc8,stroke:#33691e,stroke-width:2px;
classDef revoked fill:#ffcdd2,stroke:#b71c1c,stroke-width:2px;
class Start,FetchUpdate,Step2,Step3,Step4,Step5 process;
class Step1,GotUpdate,CheckIssuer,CheckDP,CheckBasicConstraints,CheckCRL_CA,CheckCRL_User,ValidateSig,CheckKeyUsage,LookupSerial decision;
class Valid valid;
class Revoked,Revoked2,Revoked3,Revoked4,Revoked5 revoked;
OCSP Response Validation¶
When using OCSP, the Wallet Unit SHALL:
- Verify
responseStatusissuccessful (0). If theresponseStatusis notsuccessful, the Wallet Unit SHOULD attempt to retrieve an updated OCSP response, and if that fails, the certificate status SHALL be consideredunknown. - Verify
responseTypeisid-pkix-ocsp-basic. - Verify the response
signatureusing the Responder's public key (certsfield in the OCSP response).- Note: To ensure the OCSP Responder is authorized, match the Issuer's key or check the delegation certificate signed by the Issuer.
- Verify
responderIDmatches the signer, and theCertIDhash fields match the certificate being checked.issuerNameHashfield value is the hash (viahashAlgorithm) of the DER encoding of the issuer's Name.issuerKeyHashfield value is the hash (viahashAlgorithm) of the issuer’ssubjectPublicKeyBIT STRING (excluding tag/length/unused-bits).serialNumberfield value is the certificate’s serial number.
- Check
thisUpdateandnextUpdate(orproducedAt) against local freshness policies.
Note
It is assumed that only basic OCSP responses (i.e., where responseType is id-pkix-ocsp-basic) are supported.
If any of the checks in 2-4 fail, the certificate status SHALL be considered unknown. If all checks succeed, update the status of each certificate by matching the certStatus value in the SingleResponse to the requested CertID.
flowchart TD
Start([Receive OCSP Response]) --> Step1{Step 1: Verify response Status}
%% Step 1: Status Verification & Retry Logic
Step1 -- "Status == successful (0)" --> Step2{"Step 2: Verify response Type"}
Step1 -- "Status != successful" --> Retry{Retry Available?}
Retry -- Yes --> FetchNew[Attempt to retrieve<br/>updated OCSP response]
FetchNew --> Step1
Retry -- No --> StatusUnknown([Certificate Status: UNKNOWN])
%% Step 2: Response Type
Step2 -- "id-pkix-ocsp-basic" --> Step3["Step 3: Verify Signature & Auth"]
Step2 -- Other --> Invalid([Certificate Status: UNKNOWN<br/>Reason: Invalid Response Type])
%% Step 3: Signature Verification
Step3 --> CheckSig{Signature Valid?}
CheckSig -- Yes --> Step4["Step 4: Verify ResponderID & CertID"]
CheckSig -- No --> InvalidSig([Certificate Status: UNKNOWN<br/>Reason: Invalid Signature])
%% Step 4: ID Matching
Step4 --> CheckIDs{Do IDs Match?}
CheckIDs -- Yes --> Step5["Step 5: Check Freshness"]
CheckIDs -- No --> InvalidIDs([Certificate Status: UNKNOWN<br/>Reason: ID Mismatch])
%% Step 5: Freshness
Step5 --> CheckTime{"Time Check<br/>Is current_time between<br/>thisUpdate and nextUpdate?"}
CheckTime -- No --> Stale([Certificate Status: UNKNOWN<br/>Reason: OCSP Response Expired])
CheckTime -- Yes --> ProcessStatus[Parse SingleResponse certStatus]
%% Final Status Mapping
ProcessStatus --> CheckCertStatus{Check certStatus Value}
CheckCertStatus -- good --> StatusGood([Certificate Status: GOOD])
CheckCertStatus -- revoked --> StatusRevoked([Certificate Status: REVOKED])
CheckCertStatus -- unknown --> StatusUnknownResponse([Certificate Status: UNKNOWN])
%% Styling
classDef process fill:#e1f5fe,stroke:#01579b,stroke-width:1px;
classDef decision fill:#fff9c4,stroke:#fbc02d,stroke-width:1px;
classDef outcome fill:#dcedc8,stroke:#33691e,stroke-width:2px;
classDef fail fill:#ffcdd2,stroke:#b71c1c,stroke-width:2px;
class Start,FetchNew,Step3,Step4,Step5,ProcessStatus process;
class Step1,Step2,Retry,CheckSig,CheckIDs,CheckTime,CheckCertStatus decision;
class StatusGood outcome;
class Invalid,InvalidSig,InvalidIDs,Stale,StatusRevoked,StatusUnknown,StatusUnknownResponse fail;
Trust Checks by Flow¶
This section describes how the Trust Evaluation Processes are performed during the Issuance and Presentation flows. For each flow, it specifies which processes are performed, in what order, and by which entity, in order to establish the trust required to complete the operation.
Issuance¶
This section details the trust checks that SHALL be performed during the Issuance process.
sequenceDiagram
participant User
participant Wallet as Wallet Instance
participant EAAProvider as Attestation Provider
participant LoTE as LoTE Endpoint
participant Register as Register
User->>Wallet: 1. Request EAA issuance
Wallet->>EAAProvider: 2. Fetch Credential Issuer Metadata (OpenID4VCI)
EAAProvider-->>Wallet: Signed Credential Issuer Metadata
rect rgb(230, 230, 230)
Note over Wallet: Verify metadata signature
Wallet->>LoTE: 3a. Fetch Provider of WRPAC LoTE
LoTE-->>Wallet: Provider of WRPAC LoTE
Note over Wallet: 3b. Validate LoTE
Note over Wallet: 3c. Identify the corresponding trusted entity
Note over Wallet: 3d. Validate the WRPAC
Note over Wallet: 3e. Validate the metadata signature using the WRPAC
end
rect rgb(230, 230, 230)
Note over Wallet: Verify WRPRC and establish authorization context
alt WRPRC present and valid
Wallet->>LoTE: 4a. Fetch Provider of WRPRC LoTE
LoTE-->>Wallet: Provider of WRPRC LoTE
Note over Wallet: 4b. Validate LoTE
Note over Wallet: 4c. Identify the corresponding trusted entity
Note over Wallet: 4d. Validate the WRPRC
else WRPRC absent or invalid
opt Wallet invokes optional Register fallback
Wallet->>Register: 4e. GET /wrp
Register-->>Wallet: Signed Register response
alt Register response valid
Note over Wallet: Establish authoritative Register context
else Register retrieval or validation fails
Note over Wallet: Stop: FAILED / NOT_AUTHORIZED
end
end
Note over Wallet: If no valid context is established, stop: NOT_AUTHORIZED
end
end
alt Authorization context and content valid
Note over Wallet: 5. Run common Authorization Process: binding, entitlement, and attestation type checks
opt applicable to Authorization Code Flow only
Wallet->>EAAProvider: 6. Send WIA to PAR endpoint (OpenID4VCI)
rect rgb(230, 230, 230)
Note over EAAProvider: Verify WIA
EAAProvider->>LoTE: 7a. Fetch Wallet Providers LoTE
LoTE-->>EAAProvider: Wallet Providers LoTE
Note over EAAProvider: 7b. Validate LoTE
Note over EAAProvider: 7c. Identify the corresponding trusted entity
Note over EAAProvider: 7d. Validate the WIA signature
Note over EAAProvider: 7e. Validate the WIA status
EAAProvider-->>Wallet: Authorization response (code)
end
end
Wallet->>EAAProvider: 8. Send WIA to Token endpoint (OpenID4VCI)
rect rgb(230, 230, 230)
Note over EAAProvider: Verify WIA
EAAProvider->>LoTE: 7a. Fetch Wallet Providers LoTE
LoTE-->>EAAProvider: Wallet Providers LoTE
Note over EAAProvider: 7b. Validate LoTE
Note over EAAProvider: 7c. Identify the corresponding trusted entity
Note over EAAProvider: 7d. Validate the WIA signature
Note over EAAProvider: 7e. Validate the WIA status
end
EAAProvider-->>Wallet: Token response (access token)
Wallet->>EAAProvider: 9. Send KA to Credential endpoint (OpenID4VCI)
rect rgb(230, 230, 230)
Note over EAAProvider: Verify KA
EAAProvider->>LoTE: 7a. Fetch Wallet Providers LoTE
LoTE-->>EAAProvider: Wallet Providers LoTE
Note over EAAProvider: 7b. Validate LoTE
Note over EAAProvider: 7c. Identify the corresponding trusted entity
Note over EAAProvider: 10a. Validate the KA signature
Note over EAAProvider: 10b. Validate the KA status
end
EAAProvider-->>Wallet: Credential response
rect rgb(230, 230, 230)
Note over Wallet: Verify Attestation
Wallet->>LoTE: 11a. Fetch Attestation Provider LoTE
LoTE-->>Wallet: Attestation Provider LoTE
Note over Wallet: 11b. Validate LoTE
Note over Wallet: 11c. Validate Attestation signature
end
else Authorization context or content validation fails
Note over Wallet: Stop immediately: FAILED, BINDING_FAILED, WRONG_ENTITLEMENT, or ATTESTATION_TYPE_NOT_REGISTERED
end
Note
Attestation Providers can have a dedicated Authorization Server that makes authorization-related endpoints available. That kind of implementation details are hidden in this schema, since the Attestation Provider bears the overall responsibility for responding to the Wallet Instance's requests.
Note
A nonce endpoint might be necessary as well however that feature does not have an impact on the trust-related checks.
Step-by-step Operations¶
Step 1: Request EAA Issuance. Various flows are possible for this step and this can depend on the wallet implementation. The Wallet Instance can be populated with a pre-defined set of credentials offered by different Attestation Providers or can fetch other offers via different means.
Step 2: Fetch Credential Issuer Metadata (OID4VCI). The Wallet Instance retrieves information about the Attestation Provider's technical capabilities, supported attestations, and display information from the Attestation Provider endpoint. In this context it is expected that the metadata is a signed JSON Web Signature (JWS). The JWS also contains the WRPAC in its Protected Header [AUTHZ-ISS-04].
Step 3a: Fetch Provider of WRPAC LoTE. The Wallet Instance retrieves the LoTE listing all the WRPAC issuers from a publicly-known URL.
Step 3b: Validate LoTE. The Wallet Instance validates the LoTE signature is order to make sure the LoTE is authentic. Extra checks are performed in order to make sure the LoTE is not outdated.
Step 3c: Identify the corresponding Trusted Entity. The Wallet Instance identifies the LoTE Trusted Entity corresponding to the WRPAC presented in the metadata JWS.
Step 3d: Validate the WRPAC. The Wallet Instance validates the authenticity and integrity of the WRPAC using the trust anchor of the Trusted Entity identitied in the LoTE.
Step 3e: Validate the metadata signature using the WRPAC. The Wallet Instance validates the metadata JWS signature using the WRPAC [AUTHZ-ISS-05]. The Wallet Instance SHALL also validate the metadata contents and supported-credential declarations [AUTHZ-ISS-06].
Step 4: Establish the authorization context. The Wallet Instance extracts the issuer authorization data needed by the common Authorization Process [AUTHZ-ISS-07]. It validates the WRPRC using the relevant Trust Anchor and the checks in Authorization Process. If the WRPRC is absent or invalid, the Wallet Instance MAY invoke the optional Register fallback by retrieving and validating the required GET /wrp response [AUTHZ-ISS-08, AUTHZ-ISS-09]. If the Wallet Instance invokes that fallback and retrieval or validation fails, the result is FAILED and issuance SHALL NOT continue. If no valid context is established, issuance is NOT_AUTHORIZED.
Step 5: Run the common Authorization Process. After context validation, the Wallet Instance invokes binding and, where applicable, intermediary-association validation; verifies the credential-type entitlement; and verifies the requested attestation type against the registered provides_attestations data and Credential Issuer Metadata [AUTHZ-ISS-01, AUTHZ-ISS-02, AUTHZ-ISS-03]. Any context, binding, intermediary-association, entitlement, or attestation-type failure is non-overridable. Presentation-only scope and EDP checks do not apply to issuance.
Step 6: Send WIA to PAR endpoint (OID4VCI). The Wallet Instance sends the WIA signed by the WP, attesting that the Wallet Instance is a valid one.
Step 7a: Fetch WP LoTE. The Attestation Providers retrieves the LoTE listing all the WPs from a publicly-known URL. This list is necessary to validate different signed artifacts received from the Wallet Instance in the different requests. Attestation Providers can implement a caching mechanism of the LoTE so that they would not need to retrieve it multiple times in the course of the EAA issuance process. It is up to Attestation Providers to implement this mechanism or not and to decide for how long they would want to cache the list. This implies that in some cases, this step could be skipped.
Step 7b: Validate LoTE. The Attestation Provider validates the LoTE signature in order to make sure the LoTE is authentic. Extra checks are performed in order to make sure the LoTE is not outdated.
Step 7c: Identify the corresponding Trusted Entity. The Attestation Provider identifies the LoTE Trusted Entity corresponding to the WIA presented in the request.
Step 7d: Validate the WIA signature. The Attestation Provider checks the WIA integrity and authenticity by validating the JWT signature using the trust anchor of the Trusted Entity identified in the LoTE.
Step 7e: Validate the WIA status. The Attestation Provider checks that the Wallet Instance is valid by verifying the status list referenced in the WIA. Extra checks performed are WIA validity and associated Proof-of-Possession.
Step 8: Send WIA to Token endpoint (OID4VCI). The Wallet Instance sends the WIA signed by the WP, attesting that the Wallet Instance is a valid one.
Step 9: Send KA to Credential endpoint (OID4VCI). The Wallet Instance sends the KA signed by the WP, attesting information about the security of cryptographic keys stored in the Wallet Unit.
Step 10a: Validate the KA signature. The Attestation Provider checks the KA integrity and authenticity by validating the signature using the Trust Anchor of the Trusted Entity identified in the LoTE.
Step 10b: Validate the KA status. The Attestation Provider checks that the KA is valid by verifying the status list referenced within. Extra checks performed are KA validity and associated Proof-of-Possession.
The Attestation Provider checks that the cryptographic keys are protected according to its policy if any, and verifies the related Proof-of-Possessions if any.
Step 11a: Fetch EAA/PID/QEAA/Pub-EAA Provider LoTE. The Wallet Instance retrieves the LoTE listing all the Providers of the corresponding type.
Step 11b: Validate Attestation Provider LoTE. The Wallet Instance validates the LoTE signature in order to make sure the LoTE is authentic. A good practice is to follow the [ETSI TS 319 102-1, Clause 5] for validating AdES digital signatures. Extra checks are performed in order to make sure the LoTE is not outdated.
Step 11c: Validate Attestation signature. The Wallet Instance checks the integrity and authenticity of the Attestation by validating the signature using the trust anchor identified in the LoTE. If multiple Attestations were received, they are all validated.
After successful issuance, the Wallet Instance SHALL retain any accepted EDP with the corresponding Attestation so that it can be evaluated during presentation [AUTHZ-ISS-10].
Note
If any of the checks described in the previous steps fail, the process SHALL be aborted either by the Wallet Instance, the user, or the Attestation Provider.
Presentation¶
This section specifies the trust checks performed during Presentation flows, both:
- Remote Presentation, e.g. OID4VP-based presentation request.
- Proximity Presentation, e.g. [ISO/IEC 18013-5] DeviceRequest / ReaderAuth based interaction.
Entities and Artifacts¶
| Entity | Role in Presentation Trust Evaluation |
|---|---|
| Wallet Instance (Wallet Unit) | Main trust evaluator. Authenticates the WRP, runs the common Authorization Process, evaluates scope and EDPs, and presents results/advisories to the User. |
| WRP | Requests Attestations from the Wallet. May act directly or through an intermediary. |
| Relying Party Intermediary | Acts on behalf of a final RP. SHALL be authenticated and bound to the final RP authorization context. |
| Provider of WRPAC | Issues the WRPAC used to authenticate the WRP or Relying Party Intermediary. |
| Provider of WRPRC | Issues the WRPRC used as authorization evidence. |
| Registrar (Register) | Optional source of registration data, used as fallback when WRPRC is missing or invalid following [TS05]. A successfully validated response is authoritative; an invoked lookup or validation failure blocks authorization. |
| LoTE | Infrastructure used to resolve Trust Anchors for the Trusted Entities. |
| User | Makes the final disclosure decision, after the Wallet Instance displays identity, requested attributes, intended use, policy results and advisories. |
| Artifact | Used for |
|---|---|
| WRPAC | Authentication of the WRP or Relying Party Intermediary and verification of the signed presentation request artifact. |
| Signed request artifact | Remote Flow: signed OID4VP Request Object. Proximity Flow: ReaderAuth / mdoc request structure. |
| WRPRC | Authorization evidence for the (final) RP, including subject, entitlement, intended use, registered credential/claim scope, status, and intermediary relationship where applicable. |
| Register response | Fallback authorization evidence when WRPRC is absent or invalid. |
| RPRC_19a / request registration data | Presentation-request fields carrying (final) RP information and registry URI ([ARF, Topic 44]) for discovery and binding; these fields are not proof of registration. |
| EDP | Generated during issuance and stored locally by the Wallet during issuance and evaluated at presentation time. |
| Requested attributes | Remote Flow: DCQL credential_queries.claims. Proximity Flow: docRequest.itemRequest.nameSpaces. |
Common Presentation Trust Evaluation Model¶
The authorization logic is common to Remote and Proximity flows. The differences are limited to the transport, the location and format of the WRPRC, and the way requested attributes are extracted. The user setting in this topic controls only the optional requested-scope comparison; it does not disable context, binding, intermediary-association, entitlement, or EDP checks.
flowchart TD
Start([Presentation request received])
Start --> A1[Check 1: Authenticate WRP/RPI using WRPAC]
A1 --> A1D{Authentication OK?}
A1D -->|No| StopAuth[Stop: Authorization Process SHALL NOT start]
A1D --> E1[Check 2: Extract request and authorization context]
E1 --> E1D{Request/context extraction valid?}
E1D -->|No| StopMalformed[Stop: FAILED / NOT_AUTHORIZED / malformed request]
E1D -->|Yes| E2{WRPRC present?}
E2 -->|Yes| W1[Check 3A: Validate WRPRC]
W1 --> W1D{Valid WRPRC?}
W1D -->|Yes| C1[Use valid authorization context]
W1D -->|No| R0{Invoke optional Register?}
E2 -->|No| R0
R0 -->|No| C0[No valid authorization context]
R0 -->|Yes| R1[Check 3B: Retrieve and validate Register response]
R1 --> R1D{Register response valid?}
R1D -->|No| StopRegister[Stop: FAILED / NOT_AUTHORIZED]
R1D -->|Yes| C1
C0 --> StopContext[Stop: FAILED / NOT_AUTHORIZED / no valid context]
C1 --> I1{Intermediary scenario?}
I1 -->|No| B1[Check 4: Verify direct binding]
B1 --> B1D{Direct binding OK?}
B1D -->|No| StopBind[Stop: NOT_AUTHORIZED / binding failure]
B1D -->|Yes| Ent1[Check 6: Verify Service_Provider entitlement]
I1 -->|Yes| I2[Check 5: Verify intermediary association]
I2 --> I2D{Association OK?}
I2D -->|No| StopInt[Stop: INTERMEDIARY_NOT_AUTHORIZED]
I2D -->|Yes| B2[Check 4a: Verify final RP context]
B2 --> B2D{Final RP context coherent?}
B2D -->|No| StopBind
B2D -->|Yes| Ent1
Ent1 --> EntD{Entitlement valid?}
EntD -->|No| StopEnt[Stop: WRONG_ENTITLEMENT]
EntD -->|Yes| S0{Check 7: Scope comparison enabled?}
S0 -->|No| EDP1[Check 8: Evaluate EDP]
S0 -->|Yes| S1[Compare requested attributes with registered scope]
S1 --> SD{Scope within registered scope?}
SD -->|No| AdvScope[Advisory: OVERASKING_DETECTED]
SD -->|Yes| EDP1
AdvScope --> EDP1
EDP1 --> EDPD{EDP satisfied or absent?}
EDPD -->|No| AdvEDP[Advisory: EDP_NOT_SATISFIED]
EDPD -->|Yes| UI1[Check 9: Display final RP, request and outcomes]
AdvEDP --> UI1
UI1 --> Final{User approves disclosure and/or overrides?}
Final -->|Yes| Present[Present selected attestations]
Final -->|No| Deny[Deny presentation]
Present --> End([End])
Deny --> End
StopAuth --> End
StopMalformed --> End
StopContext --> End
StopRegister --> End
StopBind --> End
StopInt --> End
StopEnt --> End
Flowchart to detailed trust-check index¶
Section Common Presentation Trust Evaluation Model uses coarse step labels (Check 1-Check 9) for control flow. Section Detailed Trust Checks decomposes the same logic into [APTITUDE-RFC003] test-case identifiers (TC-PRES-001-TC-PRES-017). The correspondence is mostly one-to-many: one flowchart label may map to several TC-PRES checks, and some TC-PRES checks have no separate box in the flowchart. Trust-list resolution (TL-PRES-001, Section Trust Anchor and Trusted List Checks) is a cross-cutting dependency of WRPAC, WRPRC, and Register validation rather than its own flowchart step.
| Flowchart | Trust Checks | Notes |
|---|---|---|
| Check 1 — Authenticate WRP/RPI using WRPAC | TC-PRES-001 |
Direct match. |
| S0 — Scope comparison enabled? | TC-PRES-002 |
The user setting controls only requested-scope comparison. |
| Check 2 — Extract request and authorization context | TC-PRES-003 |
Direct match. |
| Check 3A — Validate WRPRC | TC-PRES-004, TC-PRES-005 |
One diagram box; Section Detailed Trust Checks splits format/algorithm validation from signature, chain, Trust Anchor, temporal validity, and status. |
| Check 3B — Query and validate Register data | TC-PRES-006 |
Direct match; optional after WRPRC is absent or Check 3A fails. An invoked failure blocks authorization. |
| Check 4, Check 4a — Direct/final-RP binding verification | TC-PRES-007, TC-PRES-010 |
TC-PRES-007 covers direct RP binding; TC-PRES-010 covers the final-RP context box for an intermediary. |
| I1 — Intermediary scenario? | TC-PRES-008 |
Intermediary detection; decision diamond, not a "Check N" label. |
| Check 5 — Verify intermediary association | TC-PRES-009 |
Direct match. |
| Check 6 — Entitlement verification | TC-PRES-011 |
Direct match; failure is non-overridable. |
| Check 7 — Scope comparison | TC-PRES-012, TC-PRES-013 |
Diagram merges attribute extraction and scope comparison. |
| Check 8 — EDP evaluation | TC-PRES-014, TC-PRES-015, TC-PRES-016 |
One diagram box after all non-overridable checks; Section Detailed Trust Checks splits presence, Authorized Relying Parties Only, and Specific Root of Trust. |
| Check 9 — Display trust results and User approval | TC-PRES-017 |
Direct match |
| (implicit in WRPAC / WRPRC / Register validation) | TL-PRES-001 |
LoTE checks (Section Trust Anchor and Trusted List Checks); no dedicated flowchart node. |
Checks in Section Detailed Trust Checks without a Section Common Presentation Trust Evaluation Model "Check N" label: TC-PRES-008 (intermediary detection, see I1) and TC-PRES-012 (requested-attribute extraction, prerequisite to Check 7).
Flowchart outcomes (not separate trust checks):
| Flowchart Node | Typical Source Check |
|---|---|
| StopAuth | TC-PRES-001 failure |
| StopContext | TC-PRES-003 / TC-PRES-004 / TC-PRES-005 (no valid context after optional fallback) |
| StopRegister | TC-PRES-006 (invoked Register validation failed) |
| StopBind | TC-PRES-007 / TC-PRES-010 |
| StopInt | TC-PRES-009 |
| StopEnt | TC-PRES-011 |
| AdvScope | TC-PRES-013 |
| AdvEDP | TC-PRES-014 to TC-PRES-016 |
Remote Presentation Flow¶
Remote-specific inputs¶
| Item | Remote Flow Source |
|---|---|
| Signed request artifact | The Remote Presentation request, represented as an OID4VP Authorization Request (JWT/JWS). This is the main artifact the Wallet Instance validates before trusting the request. It contains EUDI-specific extensions such as verifier_info. |
| WRPAC chain | The WRPAC authenticates the technical requester (RP or Intermediary) that signed the Request Object. The certificate chain is carried in the JOSE header using x5c. The Wallet Instance uses this chain to validate the signer's certificate, check that it chains to a trusted root, and confirm that the request was signed by the entity represented by the access certificate. |
| WRPRC | The WRPRC is included by value inside verifier_info. |
| WRPRC format | JWT, typ = rc-wrp+jwt. |
| Register fallback URL / RP information | Part of verifier_info metadata, under key RPRC_19a. If no usable WRPRC is included, the Wallet Instance MAY use the supplied information to find the responsible Register/Registrar. Register lookup is optional; if invoked, a retrieval or validation failure blocks authorization. |
| Requested attributes | DCQL credential_queries[].claims[]. |
Remote flow trust-check diagram¶
flowchart LR
RP[Remote RP or RPI] --> Req[Signed OpenID4VP Request Object]
Req --> WRPAC[Check: WRPAC chain in x5c]
Req --> WRPRC[Check: WRPRC from verifier_info]
Req --> RPRC19a[Check: RPRC_19a data / registry URI]
Req --> DCQL[Check: requested claims from DCQL]
WRPAC --> WI[Wallet Instance]
WRPRC --> WI
RPRC19a --> WI
DCQL --> WI
WI --> TA[Resolve trust anchors from LoTE / trusted-list infrastructure]
WI --> ContextD{WRPRC valid?}
ContextD -->|Yes| Context[Valid authorization context from WRPRC]
ContextD -->|No| RegChoice{Invoke optional Register?}
RegChoice -->|No| StopContext[Stop: FAILED / NOT_AUTHORIZED]
RegChoice -->|Yes| Reg[Query Register if WRPRC missing or invalid]
Reg --> RegD{Register valid?}
RegD -->|No| StopRegister[Stop: FAILED / NOT_AUTHORIZED]
RegD -->|Yes| Context
Context --> Eval[Perform binding, entitlement, scope and EDP checks]
Eval --> User[Display results to User]
Proximity Presentation Flow¶
Proximity-specific inputs¶
| Item | Proximity Flow Source |
|---|---|
| Signed request artifact | The reader sends a DeviceRequest, which contains one or more document requests. The signed/security-relevant part is the ReaderAuth structure. |
| WRPAC chain | The certificate chain is presented within the WRP-signed ReaderAuth element of the mdoc request message. |
| WRPRC | The WRPRC is the registration/authorization evidence of the RP and is extracted from the euWrprc member inside requestInfo in the ISO DeviceRequest. |
| WRPRC format | CWT, typ = rc-wrp+cwt. |
| Register fallback URL / RP information | The Registrar URL MAY be extracted from requestInfo; if no WRPRC is present or it is invalid, the Wallet Instance MAY apply Register validation using the registry_uri, RP identifier, and intended_use_id from the request extension. An invoked retrieval or validation failure blocks authorization. |
| Requested attributes | docRequest.itemRequest.nameSpaces. |
Warning
The current trust specification notes that the mapping of RPRC_19a data in requestInfo is not fully defined in [ETSI TS 119 472-2]. [APTITUDE-RFC003] SHOULD either define an APTITUDE convention for this mapping or mark the related tests as dependent on the final ETSI / APTITUDE profile decision.
Proximity flow trust-check diagram¶
flowchart LR
Reader[Proximity Reader / RP or RPI] --> DeviceReq[ISO 18013-5 DeviceRequest]
DeviceReq --> ReaderAuth[Check: ReaderAuth signature and WRPAC chain]
DeviceReq --> ReqInfo[Check: requestInfo]
ReqInfo --> EuWrprc[Check: euWrprc WRPRC]
DeviceReq --> Namespaces[Check: requested attributes from namespaces]
ReaderAuth --> WI[Wallet Instance]
EuWrprc --> WI
ReqInfo --> WI
Namespaces --> WI
WI --> TA[Resolve trust anchors from LoTE / trusted-list infrastructure]
WI --> ContextD{WRPRC valid?}
ContextD -->|Yes| Context[Valid authorization context from WRPRC]
ContextD -->|No| RegChoice{Invoke optional Register?}
RegChoice -->|No| StopContext[Stop: FAILED / NOT_AUTHORIZED]
RegChoice -->|Yes| Reg[Query Register if WRPRC missing or invalid]
Reg --> RegD{Register valid?}
RegD -->|No| StopRegister[Stop: FAILED / NOT_AUTHORIZED]
RegD -->|Yes| Context
Context --> Eval[Perform binding, entitlement, scope and EDP checks]
Eval --> User[Display results to User]
Detailed Trust Checks¶
For the mapping from Section Common Presentation Trust Evaluation Model flowchart labels to the identifiers below, see Flowchart to detailed trust-check index.
TC-PRES-001 — WRP/RPI authentication using WRPAC¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance / Wallet Unit. |
| Checked entity | Authenticated WRP, which may be the direct RP or an RPI. |
| Input artifacts | WRPAC certificate chain, signed request artifact, LoTE Trust Anchor for Provider of WRPAC. |
| Remote input location | WRPAC chain in x5c of signed OID4VP Request Object. |
| Proximity input location | WRPAC chain in ReaderAuth / mdoc request message. |
| Checks | Retrieve Trust Anchor from the relevant LoTE; construct WRPAC certification path; validate certificate path; validate certificate status where applicable; verify the signature on the request artifact using the WRPAC public key. |
| Positive result | WRP/RPI is authenticated; the Authorization Process MAY start. |
| Negative result | Authentication failed. Authorization processing SHALL NOT start. |
| Test focus | Valid chain, invalid chain, unknown Trust Anchor, expired certificate, revoked certificate, invalid request signature, mismatched signing key. |
TC-PRES-002 — User choice for requested-scope comparison¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | User configuration / Wallet policy. |
| Input artifacts | Wallet setting for requested-scope comparison. |
| Checks | Determine whether the User has disabled the optional requested-scope comparison. The setting SHALL be enabled by default and SHALL NOT disable authorization-context, binding, intermediary-association, entitlement, or EDP checks. |
| Positive result | Run the requested-scope comparison after the mandatory content checks. |
| Negative / disabled result | Skip only the requested-scope comparison and continue with EDP evaluation. |
| Test focus | Default-enabled setting; enabled path; disabled path; UI indication that only scope comparison was skipped. |
TC-PRES-003 — Authorization-context input extraction¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Presentation request. |
| Input artifacts | WRPRC, request registration data, registry URI, RP/final RP identifier, intended use identifier. |
| Remote input location | verifier_info in Request Object. |
| Proximity input location | euWrprc and related registration data in requestInfo. |
| Checks | Extract WRPRC if present. Extract RP/final RP identity, registry URI, and intended_use_id / intended-use reference needed for Register fallback and scope comparison. |
| Positive result | A validated WRPRC establishes context, or discovery inputs are available to request the optional Register lookup. Request data alone is not authorization evidence. |
| Negative result | A malformed or unprocessable request, or missing context inputs, produces validation outcome FAILED and no valid authorization context. The final result is NOT_AUTHORIZED; the Wallet SHALL NOT continue to binding, entitlement, scope, or EDP checks. |
| Test focus | WRPRC present; WRPRC absent but Register URL present; WRPRC absent and Register URL absent; malformed verifier_info; malformed requestInfo; missing intended-use identifier; malformed requested-attribute extraction. |
TC-PRES-004 — WRPRC format and algorithm validation¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | WRPRC. |
| Input artifacts | WRPRC from presentation request. |
| Remote rule | WRPRC is JWT and typ = rc-wrp+jwt. |
| Proximity rule | WRPRC is CWT and typ = rc-wrp+cwt; signing algorithm is taken from COSE header. |
| Checks | Verify expected type, supported encoding, accepted signature algorithm, no none algorithm, no deprecated or forbidden algorithm. |
| Positive result | Proceed to WRPRC signature and certificate chain validation. |
| Negative result | WRPRC validation returns CERTIFICATE_INVALID; the Wallet Instance MAY invoke the optional Register fallback. If it does not obtain a valid context, the final result is NOT_AUTHORIZED. |
| Test focus | Correct type; wrong type; unsupported format; none algorithm; deprecated algorithm; malformed JWT/CWT/COSE. |
TC-PRES-005 — WRPRC signature, certificate chain, trust anchor, temporal validity and status¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | WRPRC and Provider of WRPRC. |
| Input artifacts | WRPRC, WRPRC signing certificate chain, LoTE Trust Anchor for Provider of WRPRC, WRPRC iat, exp, and status fields. |
| Checks | Verify WRPRC signature; validate certificate chain; resolve Trust Anchor for Provider of WRPRC from the relevant LoTE; verify temporal validity; verify status / revocation using the status field; verify coherence between WRPRC subject and scenario context. |
| Positive result | WRPRC becomes authoritative authorization context. |
| Negative result | WRPRC validation returns CERTIFICATE_INVALID; the Wallet Instance MAY invoke the optional Register fallback. If it does not obtain a valid context, the final result is NOT_AUTHORIZED and no later authorization check is run. |
| Test focus | Valid WRPRC; invalid signature; unknown WRPRC provider; expired WRPRC; not-yet-valid WRPRC; revoked WRPRC; subject/context mismatch. |
TC-PRES-006 — Register fallback validation¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Registrar / Register response. |
| Input artifacts | Register URI, Authorization Subject identifier for the final RP, intended-use identifier, signed Register response, Registrar Trust Anchor from LoTE. |
| Checks | Extract Registrar URL; connect over HTTPS; query by the Authorization Subject identifier and intended_use_id; verify response signature; resolve and validate Registrar trust chain; verify that the response pertains to the final RP authorization subject and intended use; normalize Register-derived data into the same internal model used for WRPRC-derived data. |
| Positive result | Register response becomes authoritative authorization context. |
| Negative result | Register retrieval or validation returns FAILED; this is non-overridable and the final result is NOT_AUTHORIZED. The Wallet Instance SHALL NOT continue to binding, entitlement, scope, or EDP checks. |
| Test focus | Successful optional Register lookup; unavailable Register; TLS failure; unsigned response; invalid response signature; wrong subject; wrong intended use; unknown Registrar Trust Anchor; stale or revoked Registrar signing certificate. |
TC-PRES-007 — Direct RP binding verification¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Direct RP. |
| Input artifacts | Authenticated WRP identifier from WRPAC subject DN, specifically the organizationIdentifier where available; claimed RP identifier from presentation request / RPRC_19a; WRPRC sub and/or Register subject. |
| Checks | For a direct RP scenario, determine that the authenticated WRP identifier and the claimed RP identifier match. Verify that all available identifiers are mutually consistent: WRPAC subject / organizationIdentifier, WRPRC sub, request registration data / RPRC_19a, and Register response if queried. If they do not match, this is an authorization-context integrity failure, not a user choice. |
| Positive result | Direct RP binding is confirmed. |
| Negative result | BINDING_FAILED; non-overridable; presentation SHALL NOT proceed on that authorization context. |
| Test focus | All identifiers match; WRPRC sub mismatch; request RP identifier mismatch; Register subject mismatch; inconsistent mixed WRPRC/Register data; WRPAC subject DN present but organizationIdentifier absent or malformed. |
TC-PRES-008 — Intermediary detection¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Authenticated WRP and claimed final RP. |
| Input artifacts | WRPAC subject identifier, claimed RP/final RP identifier from presentation request. |
| Checks | Compare authenticated WRP identifier with claimed RP identifier. If they match, treat as direct RP. If they differ, treat as intermediary scenario. |
| Positive result | Scenario type is determined. |
| Negative result | Not applicable as a pass/fail check, but missing final RP information should lead to an intermediary authorization failure. |
| Test focus | Direct RP; valid intermediary; missing final RP identifier; ambiguous identifiers; same trade name but different legal identifier. |
TC-PRES-009 — Intermediary association verification¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | RPI acting on behalf of final RP. |
| Input artifacts | Authenticated intermediary identifier from WRPAC, final RP authorization context from WRPRC or Register, intermediary structure where available. |
| Checks | Verify that the authenticated intermediary is authorized to act on behalf of the final RP. If WRPRC is valid, check that the final RP WRPRC contains an intermediary structure and that intermediary.sub matches the authenticated intermediary identifier. If the WRPRC is unavailable or invalid, use the already-established valid Register context; this check SHALL NOT initiate a separate Register query. |
| Positive result | Intermediary relationship is confirmed; subsequent authorization checks use the final RP context, not the intermediary context. |
| Negative result | INTERMEDIARY_NOT_AUTHORIZED; non-overridable. |
| Test focus | Valid intermediary in WRPRC; valid intermediary in Register fallback; intermediary not listed; intermediary listed for different RP; mismatched intermediary.sub; missing final RP info. |
TC-PRES-010 — Intermediated RP context coherence¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Final / intermediated RP. |
| Input artifacts | Final RP identifier from request, WRPRC sub, Register response subject, intermediary data. |
| Checks | Verify that the final RP identifier is consistent across all available sources. Ensure entitlement verification, scope comparison, and EDP evaluation are applied to the final RP context, not the intermediary identity. |
| Positive result | Final RP authorization context is coherent. |
| Negative result | BINDING_FAILED; non-overridable. |
| Test focus | Consistent final RP; final RP mismatch between request and WRPRC; final RP mismatch between request and Register; Wallet incorrectly applies intermediary context to scope or EDP. |
TC-PRES-011 — Entitlement verification¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Authorization subject: direct RP or final RP in intermediary scenario. |
| Input artifacts | Authorization context from WRPRC or Register, entitlements array. |
| Checks | Verify that the authorization subject contains the expected presentation entitlement: https://uri.etsi.org/19475/Entitlement/Service_Provider. |
| Positive result | Entitlement is valid; proceed to scope comparison. |
| Negative result | WRONG_ENTITLEMENT; non-overridable. Scope and EDP checks SHALL NOT run. |
| Test focus | Correct Service_Provider entitlement; missing entitlement; wrong entitlement such as issuer/provider entitlement; entitlement present only for intermediary but not final RP; malformed URI. |
TC-PRES-012 — Requested-attribute extraction¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Presentation request. |
| Input artifacts | Requested credential/claim structures. |
| Remote rule | Extract from DCQL credential_queries.claims. |
| Proximity rule | Extract from docRequest.itemRequest.nameSpaces. |
| Checks | Build normalized list of requested credential types, document types, namespaces and claim paths for scope comparison and User display. |
| Positive result | Requested attributes are available in normalized form. |
| Negative result | Request attributes cannot be reliably extracted; the final result is NOT_AUTHORIZED, non-overridable, with no new result code. The Wallet Instance SHALL NOT classify this as OVERASKING_DETECTED. |
| Test focus | Single claim; multiple claims; nested claim path; unknown namespace; duplicate claim; malformed DCQL; malformed mdoc namespace request; malformed requested-attribute extraction. |
TC-PRES-013 — Scope comparison / over-asking detection¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | RP/final RP authorization context and requested attributes. |
| Input artifacts | Normalized requested attributes, registered credentials, claim, meta.vct_values, doctype_value from WRPRC or Register. |
| Checks | Compare requested attributes against registered scope only when the user setting is enabled. Matching is exact and case-sensitive. For SD-JWT VC, compare claim paths and vct_values. For mdoc, compare namespaces/items and doctype_value. |
| Positive result | VERIFICATION_PASSED; requested attributes are within registered scope. |
| Negative result | OVERASKING_DETECTED; advisory and user-overridable. Wallet identifies unregistered attributes. |
| Test focus | Exact match; case mismatch; extra unregistered attribute; registered credential type but unregistered claim; unregistered credential/document type; scope defined through WRPRC; scope defined through Register fallback. |
TC-PRES-014 — EDP presence check¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Each matching attestation selected for possible presentation. |
| Input artifacts | Locally stored EDP associated with the attestation. |
| Checks | Determine whether an EDP exists for the attestation after all non-overridable checks have passed. PID are not assumed to have EDPs. EDPs apply to QEAA, PuB-EAA, and EAA. |
| Positive result | If no EDP exists, the attestation is allowed subject to User approval. If EDP exists, proceed to EDP policy evaluation. |
| Negative result | Not applicable; absence of EDP is not a failure. |
| Test focus | Attestation with no EDP; attestation with EDP; PID with no EDP; multiple attestations with different EDPs. |
TC-PRES-015 — EDP evaluation: Authorized Relying Parties Only¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | Direct RP or final RP in intermediary scenario. |
| Input artifacts | EDP authorized_parties; direct RP subject DN from WRPAC for direct RP scenarios; final RP identity and entitlements or sub-entitlements from WRPRC/Register for intermediary scenarios. |
| Checks | For direct RP, evaluate the direct RP identity. For intermediary scenario, evaluate the final RP identity and do not use the intermediary identity as a substitute. Match the direct RP subject DN against subject_dn entries where applicable and/or match the RP/final-RP entitlement or sub-entitlement against entitlement_uri entries. A match on either criterion is sufficient if the policy allows it. |
| Positive result | EDP_SATISFIED; attestation may be presented subject to User approval. |
| Negative result | EDP_NOT_SATISFIED; Wallet shows advisory / negative outcome and may allow User override. |
| Test focus | Authorized direct RP by subject DN; authorized final RP behind intermediary; intermediary authorized but final RP not authorized; entitlement match; no match; DN formatting comparison; wallet incorrectly using intermediary identity to satisfy EDP. |
TC-PRES-016 — EDP evaluation: Specific Root of Trust¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance. |
| Checked entity | RP/final RP trust root. |
| Input artifacts | EDP trusted_roots; WRPAC chain for direct RP scenarios; Provider of WRPRC root certificate information for the final/intermediated RP where applicable. |
| Checks | For direct RP, extract issuer DN and serial number from the root or intermediate certificates in the WRPAC chain and compare against trusted_roots. For intermediary scenario, retrieve root certificate information of the Provider of WRPRC for the final RP and compare against trusted_roots. The intermediary trust root SHALL NOT be used as a substitute for the final RP authorization context. |
| Positive result | EDP_SATISFIED; attestation may be presented subject to User approval. |
| Negative result | EDP_NOT_SATISFIED; Wallet shows advisory / negative outcome and may allow User override. |
| Test focus | Matching trusted root; non-matching root; serial-number mismatch; issuer-DN normalization; direct RP vs intermediary behavior. |
TC-PRES-017 — User transparency and final approval¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance and User. |
| Checked entity | Final presentation decision. |
| Input artifacts | Results of authentication, registration verification, binding, intermediary, entitlement, scope, and EDP checks. |
| Checks | Wallet displays at least: final RP identity (using its identifier if its name is unavailable), requested attributes, intended-use description, privacy-policy link, support/contact information where available, and advisories. The intermediary identity SHALL NOT be displayed. User approves or denies disclosure and, when applicable, accepts each overridable scope and EDP warning. Both warnings MAY be accepted in the same operation. |
| Positive result | If User approves and no non-overridable failure exists, selected attestations are presented. |
| Negative result | If User denies, presentation is cancelled. If User denies an attestation affected by EDP, Wallet behaves as if the attestation does not exist. |
| Test focus | Display direct RP identity; display final RP identity for an intermediated presentation; do not display intermediary as authorization subject; display unregistered attributes; display missing verification advisory; display EDP negative result; block continuation after non-overridable failure. |
Trust Anchor and Trusted List Checks¶
The following checks are used by several of the above procedures. They may be tested separately or as dependencies of WRPAC, WRPRC, and Register validation.
flowchart TD
A[Need trust anchor] --> B{Trust anchor type}
B -->|Provider of WRPAC| L1[Check WRPAC Provider LoTE]
B -->|Provider of WRPRC| L2[Check WRPRC Provider LoTE]
B -->|Registrar| L3[Check Registrar LoTE]
B -->|Qualified / TL-based entity| L4[Check LOTL and EUMS TL]
L1 --> V[Validate trusted-list authenticity, integrity, freshness]
L2 --> V
L3 --> V
L4 --> V
V --> TA[Extract trust anchor]
TA --> Use[Use trust anchor in certificate/path validation]
TL-PRES-001 — Trusted-list authenticity, integrity and freshness¶
| Field | Description |
|---|---|
| Performed by | Wallet Instance or trust-validation component used by Wallet. |
| Checked entity | LoTE. |
| Input artifacts | Trusted list, list signature, signing certificate, list metadata such as NextUpdate. |
| Checks | Validate trusted-list signature; verify that the signing certificate is authentic for the list; check list freshness / NextUpdate; extract relevant trusted entity entry and Trust Anchor. |
| Positive result | Trust Anchor can be used for certificate-path validation. |
| Negative result | Trust Anchor cannot be used; dependent WRPAC/WRPRC/Register validation fails. |
| Test focus | Valid list; invalid signature; expired list; signer not authorized; missing entity; wrong service type. |
Decision and Override Matrix¶
| Check | Negative Result | Effect in Presentation |
|---|---|---|
| WRPAC authentication | Authentication failed | Blocking and non-overridable. The Authorization Process SHALL NOT start; WRPAC authentication is a precondition to the Authorization Process. |
| WRPRC validation | CERTIFICATE_INVALID |
Not final. The Wallet Instance MAY invoke the optional Register fallback; without a valid context, final result is NOT_AUTHORIZED. |
| Register validation | FAILED |
Blocking and non-overridable when the lookup was invoked; final result is NOT_AUTHORIZED. |
| No valid authorization context | FAILED / NOT_AUTHORIZED |
Blocking and non-overridable; binding, entitlement, scope, and EDP checks SHALL NOT run. |
| Direct RP binding | BINDING_FAILED |
Blocking; non-overridable. |
| Intermediary association | INTERMEDIARY_NOT_AUTHORIZED |
Blocking; non-overridable. |
| Intermediated RP context coherence | BINDING_FAILED |
Blocking; non-overridable. |
| Entitlement verification | WRONG_ENTITLEMENT |
Blocking and non-overridable; scope and EDP checks SHALL NOT run. |
| Scope comparison | OVERASKING_DETECTED |
Advisory; user-overridable. |
| EDP evaluation | EDP_NOT_SATISFIED |
Advisory / negative policy result; user-overridable in the current APTITUDE presentation profile. |
| User final approval | User denies | Presentation cancelled. |
APTITUDE Alignment and Traceability¶
The TC-PRES identifiers are local test-check identifiers; the authoritative profile requirements remain the APTITUDE AUTHZ requirements and the authorization-process text.
| Checks in [APTITUDE-RFC003] | APTITUDE Concept / Requirement | Notes for Test Matrix |
|---|---|---|
TC-PRES-001 |
AUTHZ-GEN-01 / AUTHZ-GEN-02 authentication prerequisite |
Keep WRPAC validation as a precondition; if authentication fails, the Authorization Process SHALL not start. |
TC-PRES-002 |
AUTHZ-PRES-04 user setting for requested-scope comparison |
The setting is default-enabled but user-optional; disabling it skips only scope comparison and EDP evaluation remains mandatory. |
TC-PRES-003-TC-PRES-006 |
AUTHZ-GEN-05-AUTHZ-GEN-10; WRPRC validation and Register fallback |
WRPRC validation failure returns CERTIFICATE_INVALID; Register remains optional, but an invoked FAILED result blocks authorization. |
TC-PRES-007-TC-PRES-010 |
AUTHZ-GEN-04, AUTHZ-GEN-11/12, AUTHZ-INT-03/04/06/07 |
Direct RP binding and intermediary/final-RP coherence are non-overridable. Test final RP context separately from intermediary identity. |
TC-PRES-011 |
AUTHZ-GEN-13; presentation Service_Provider entitlement |
WRONG_ENTITLEMENT is blocking and non-overridable in presentation. |
TC-PRES-012-TC-PRES-013 |
AUTHZ-PRES-01 / AUTHZ-PRES-02 scope comparison |
Exact and case-sensitive comparison; OVERASKING_DETECTED SHALL identify unregistered attributes and is user-overridable. |
TC-PRES-014-TC-PRES-016 |
AUTHZ-EDP-03-AUTHZ-EDP-08 |
EDP SHALL be evaluated for each matching attestation. In intermediary scenarios evaluate the final RP, not the intermediary. |
TC-PRES-017 |
AUTHZ-UI-07-AUTHZ-UI-12; AUTHZ-INT-05 |
Display the final RP, never the intermediary identity, together with requested attributes, intended use, privacy-policy link, and advisories before final approval. |