OpenID Federation (Italy IT-Wallet)
Most EU Digital Identity Wallets recognise a relying party by its access certificate. Some national ecosystems, Italy's IT-Wallet first among them, recognise relying parties and credential issuers through OpenID Federation 1.0 instead: a signed chain of statements from your organization up to the ecosystem's Trust Anchor. Nexiel Verify supports both models through the same API. Each service uses one of them, so you can keep one service on its access certificate and run another in the federation.
How it works
- Your service becomes a federation Leaf. Nexiel hosts its Entity Identifier and publishes its signed Entity Configuration at
/.well-known/openid-federationunder that identifier, with your organization details and theopenid_credential_verifiermetadata wallets use: the key that signs your requests, your request and response endpoints, the pages a wallet may return the user to (redirect_uris), and the formats and encryption you accept. Its federation keys and request-signing keys are separate, and in production both are held in a hardware-backed key store. - Requests use the federation client identifier. Once you activate the profile, every request the service signs in that environment uses
openid_federation:followed by your Entity Identifier, as defined in OpenID for Verifiable Presentations 1.0, and carries your Trust Chain in thetrust_chainheader so a wallet can check it offline. A same-device session must return the user to one of your registered pages. If your federation authority issues you an authorization Trust Mark listing the claims you may request, a session asking for anything else is refused before it starts. Browser sessions through the Digital Credentials API are signed the same way, for the origins you list for the service. Your other services keep signing with their access certificate. - Credential issuers are trusted through the federation too. A credential is accepted when its issuer has a valid Trust Chain to the ecosystem's Trust Anchor, publishes the signing key in its metadata, and is admitted for that credential type by the ecosystem's issuer rules: the named issuers and the Trust Marks the federation gives to authorised issuers. An issuer's own metadata is never enough on its own. This covers SD-JWT VC credentials and mdoc credentials such as the PID and the mobile driving licence: an mdoc's certificate chain must lead to the federation's own root certificate, through a certificate the federation issued to that issuer. Every decision on such a credential records which source trusted the issuer and the exact Trust Chain, next to the other details already kept for audit.
- Your organization details are checked. In live mode, the organization name your Entity Configuration publishes must be the legal name from your approved KYB application, and any Trust Mark you add must name the same organization.
The request object a wallet receives looks like this:
{
"typ": "oauth-authz-req+jwt",
"alg": "ES256",
"kid": "<key from your openid_credential_verifier metadata>",
"trust_chain": [
"<your Entity Configuration>",
"<Subordinate Statement about you>",
"<Subordinate Statement about your superior>",
"<Trust Anchor Entity Configuration>"
]
}Try it in test mode
Test mode includes the Nexiel TEST federation: a TEST Trust Anchor, a TEST intermediate that onboards and activates your service as soon as you enable it, and a TEST credential issuer. Everything in it is labelled NEXIEL TEST and is never trusted in live mode. With a test key, enable a profile in the sandbox environment on the relying-party identity page in your dashboard, or with the API:
curl -s -X PUT https://compliance.nexiel.io/v1/verify/rp-identity/services/<serviceId>/federation \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"environment": "sandbox",
"ecosystem": "nexiel-test",
"entityMetadata": {
"organizationName": "Esempio Shop S.r.l.",
"homepageUri": "https://shop.example.it",
"policyUri": "https://shop.example.it/privacy",
"logoUri": "https://shop.example.it/logo.svg",
"contacts": ["privacy@shop.example.it"]
},
"redirectUris": ["https://shop.example.it/verified"]
}'The response shows your Entity Identifier, your endpoints, the Trust Chain Nexiel resolved for you exactly as a wallet would, and the Entity Configuration as published. Sessions you start for that service then sign as a federation Leaf. A test wallet that should trust the TEST federation needs the TEST Trust Anchor, whose Entity Configuration is published at https://compliance.nexiel.io/v1/verify/sandbox/federation/trust-anchor/.well-known/openid-federation. Live mode never trusts it.
Joining the IT-Wallet federation
In live mode, with a live key, enable a profile in the production environment with the it-wallet federation and name your federation authority, the IT-Wallet Trust Anchor or an accredited intermediate, in authorityHints. Give that authority your Entity Identifier. The service keeps signing with its access certificate meanwhile. Once the authority publishes a Subordinate Statement about you, your profile shows as onboarded and you can activate it. From then on, live sessions for the service are signed as an IT-Wallet relying party. Add any Trust Marks your authority issues to you so they appear in your Entity Configuration.
curl -s -X POST https://compliance.nexiel.io/v1/verify/rp-identity/services/<serviceId>/federation/activate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{ "environment": "production" }'Built to OpenID Federation 1.0 and the IT-Wallet technical specifications (version 1.4.7). Production requires your organization to be onboarded by an IT-Wallet federation authority, and the IT-Wallet Trust Anchor keys to be configured on the Nexiel live service. Until both are in place, activation is refused with an error naming what is missing, and the service keeps its access certificate. Accepting IT-Wallet credentials also requires the IT-Wallet issuer rules to be configured. Interoperability with IT-Wallet apps has not been tested yet.
Related
For the access-certificate model most EU wallets use, see Who registers as the relying party? For the session flow itself, see verification sessions.