Skip to main content

PID Credential Issuance

The PID Credential Issuance extension enables a government-sanctioned PID provider to issue Person Identification Data (PID) credentials to customers' EUDI Wallets. The credential is issued at high level of assurance and follows EWC RFC003 - Issue Person Identification Data for the issuance flow and the PID Rulebook v1.7 for the attributes.

How it works​

  1. The organisation enables the PID Credential Issuance extension from the dashboard.
  2. An administrator configures the source of identity data (authentic source / civil registry), the attributes to include, and the wallet conformity rules.
  3. When a customer requests a PID, an OpenID4VCI credential offer is generated (Authorization Code or Pre-Authorized Code flow).
  4. The customer accepts the offer in their EUDI Wallet, authenticates at the PID provider, and the wallet submits a Wallet Unit Attestation (WUA) and a proof-of-possession JWT.
  5. The system verifies wallet conformity and authenticity, then issues the PID credential cryptographically bound to the wallet key (in-time or deferred).
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​

Issuance flow​

Choose the OpenID4VCI flow the issuer will support:

FlowDescription
Authorization CodeTraditional OAuth flow with user authentication at the PID provider
Pre-Authorized CodeIssuer provides a pre-authorised code with an optional transaction code (PIN delivered out-of-band)

Credential formats and attributes​

On the extension page, tick the formats and the optional attributes of the PID, then Save. The mandatory attributes are listed as always included. 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-issuance.

SettingDescription
Credential formatsSD-JWT VC (dc+sd-jwt), ISO/IEC 18013-5 (mso_mdoc) or both. Each format has its own credential definition with the same attributes: PID Credential Issuance (SD-JWT VC) and PID Credential Issuance (ISO/IEC 18013-5).
Mandatory attributesAlways in the PID and cannot be unticked: family name, given name, date of birth, place of birth (at least one of country, region, locality), nationality, portrait (empty when the user opts out), issuing authority and issuing country.
Optional attributesThe resident address attributes, family and given name at birth, sex, email address, mobile phone number, personal administrative number, expiry date, issuance date, document number, issuing jurisdiction, trust anchor and legal category.

The extension starts with one SD-JWT VC definition that has only the mandatory attributes; tick the optional attributes that your PID needs. An extension enabled before the settings keeps its definition with every attribute. A save updates the definitions in place: each keeps its ID, and each issued PID keeps the claims that it was issued with. Unticking a format deletes its definition, and its issued PIDs are not listed until you tick the format again, which restores the same definition.

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. For example:

AttributeSD-JWT VCISO/IEC 18013-5
Date of birthbirthdatebirth_date
Nationalitynationalities (array)nationality (array)
Portraitpictureportrait
City of residenceaddress.localityresident_city
Email addressemailemail_address
House numberaddress.house_numbernot in this format

In both formats, the nationality is an array of ISO 3166-1 alpha-2 country codes, as the PID Rulebook sets it. Send an array also when the user has one nationality: ["SE"], not "SE".

The house number is only in SD-JWT VC; in ISO/IEC 18013-5 it is part of the street (resident_street). The page marks it as SD-JWT VC only and disables it when SD-JWT VC is not ticked. A save without SD-JWT VC leaves it out of the settings, through the API as well.

The PID does not include age attributes. To check the holder's age, derive it from the date of birth or use the Age Verification credential instead.

To verify a PID, use the PID Verification extension.

Integration​

Once configured, the system exposes the standard OpenID4VCI endpoints for discovery and issuance.

API endpoints:

Caution: Disabling the PID Credential Issuance extension removes its credential definitions: no new PID can be issued, and the issuance history is no longer listed. Previously issued PIDs remain valid until their expiry but cannot be refreshed from this issuer. The definitions are kept: enabling the extension again restores them with the signing key that you choose, and their issuance history is listed again. When the definitions cannot be restored, the enable is refused and no new definition is made.