Skip to main content

PID Verification

The PID Verification extension lets an organisation verify Person Identification Data (PID) presented from a customer's EUDI Wallet. It is the verifier companion of PID Credential Issuance. The attributes follow the PID Rulebook v1.7, and the request uses OpenID4VP with a DCQL query.

How it works​

  1. The organisation enables the PID Verification extension from the dashboard.
  2. The extension creates one presentation definition, labelled PID Verification. It asks for an SD-JWT VC PID with the 8 mandatory attributes of the PID Rulebook.
  3. An administrator chooses the formats and the attributes that the definition asks for.
  4. The organisation sends a verification request with the presentation definition. The customer presents the PID from their EUDI Wallet.
  5. The system verifies the presentation and records the verification.
Signing key: When you enable the extension, choose its signing key on the extension page, or send `signingKeyId` through the API: an X.509 key with a certificate chain, which all definitions of the extension sign with. Until it has a key, the extension waits in the status `awaitingKey` and does not run.

Configuration​

Formats and attributes​

On the extension page, tick the formats and the attributes of the PID, then Save. The help icon of each attribute shows its definition from the PID Rulebook and links to the section that defines it. Through the API, send them with PUT /v4/config/platform/extension/pid-verification.

SettingDescription
Credential formatsSD-JWT VC (dc+sd-jwt), ISO/IEC 18013-5 (mso_mdoc) or both. With both, the DCQL query has one credential query for each format and one required credential set whose options are the formats. The wallet presents the PID in the format that it holds.
AttributesEvery attribute of the PID can be chosen, also the mandatory ones of the PID Rulebook, so you ask only for what you need. The mandatory attributes start ticked: family name, given name, date of birth, place of birth, nationality, portrait, issuing authority and issuing country.

At least one format and one attribute must stay ticked, and each ticked format needs at least one ticked attribute that it has. Each chosen attribute is a required claim: a wallet only presents a PID that has every requested claim (OpenID4VP 1.0, section 6.4.1). Ask for an optional attribute only when you need it, as a PID without it cannot be presented.

The claim names differ between the formats, as the PID Rulebook sets them. The read of the extension gives the claim path of each attribute in each format. The house number exists only in SD-JWT VC (address.house_number). The page disables it when SD-JWT VC is not ticked, and a save without SD-JWT VC leaves it out, through the API as well. With both formats, a save with only the house number is refused, because the ISO/IEC 18013-5 request would ask for no attribute: "None of the chosen attributes is in ISO/IEC 18013-5 (mdoc). Choose an attribute of this format, or remove the format." Tick one more attribute, or untick ISO/IEC 18013-5. Through the API, the answer is 400 with this text, errorKey pid_format_without_attribute and the member format. The ISO/IEC 18013-5 request does not ask for the street in place of the house number, so you get only the attributes that you ticked.

A save updates the presentation definition in place: it keeps its ID. Each verification keeps the copy of the definition that it was made with, so an earlier verification still shows what it asked for.

Integration​

Send verification requests with the presentationDefinitionId from the read of the extension (OpenID4VC API, verifier).

API endpoints:

Caution: Disabling the PID Verification extension removes its presentation definition and stops new requests; its verifications are no longer listed. The definition is kept: enabling the extension again restores it with the signing key that you choose, and its verifications are listed again. When the definition cannot be restored, the enable is refused and no new definition is made.