France Identité Partenaires — Age verification¶
Requires
Android: av:// ≥ 1.3.5078, OID4VP 1.0 ✅ · iOS: av:// 🚧 working on it, OID4VP 1.0 ✅ · Credential: age verification mdoc (eu.europa.ec.av.1)
This guide explains how a relying party checks that a user is over an age threshold with France Identité, without collecting any other personal data. Two options are supported:
| Option | Protocol | Android | iOS | Use it when |
|---|---|---|---|---|
| A. EU age verification blueprint (preferred) | OpenID4VP, av://, request by value, direct_post |
✅ ≥ 1.3.5078 |
🚧 | By default: one integration for every wallet that follows the EU blueprint |
| B. France Identité OID4VP 1.0 profile | OpenID4VP, openid4vp://, signed request, encrypted response |
✅ | ✅ | Fallback for iOS, or when you also need PID attributes |
The age verification credential¶
The namespace of the Age Verification credential is eu.europa.ec.av.1.
An Age Verification credential is issued together with the PID.
| Attribute | Value |
|---|---|
age_over_18 |
true |
age_over_21 |
true |
The credential no longer contains issuing_country or expiry_date: do not request them. To check how long the credential is valid, read validityInfo (validFrom, validUntil) in the mdoc's signed Mobile Security Object, which every verifier already validates.
Option A: EU age verification blueprint (av://), preferred¶
Supported: EU age verification blueprint (av://)
From Android 1.3.5078, the France Identité Partenaires app supports the European Commission's age verification blueprint. It answers av:// requests that follow the OpenID4VP profile of Annex A of the EU Age Verification technical specification: request passed by value, redirect_uri client identifier, and direct_post response.
This is the preferred way to verify age with France Identité. A relying party built for the EU blueprint works with France Identité without changes, and the same integration works with other wallets that follow the blueprint.
av:// is not yet supported on iOS. Until it is, keep the France Identité OID4VP 1.0 profile as a fallback for iOS users.
How it differs from the France Identité OID4VP 1.0 profile¶
This profile is deliberately lighter than the France Identité OID4VP 1.0 profile. Do not mix the two in one request:
| France Identité OID4VP 1.0 profile | EU age verification profile | |
|---|---|---|
| Invocation | openid4vp:// |
av:// |
| Request | Signed request object (JAR) fetched from request_uri |
By value: URL-encoded query parameters; request and request_uri are not used |
| Client identifier | x509_san_dns:<verifier-dns-name> |
redirect_uri:<response_uri> |
| Response mode | direct_post.jwt (encrypted response) |
direct_post (unencrypted form POST) |
| Verifier authentication | Request signature and certificate | None: relies on TLS and the Web PKI |
| Credentials | PID and age verification | Age verification only |
Build the request¶
The request is a URL with the av:// scheme. Render it as a QR code (cross-device) or a link (same-device). It MUST contain:
| Parameter | Value |
|---|---|
response_type |
vp_token |
response_mode |
direct_post |
client_id |
redirect_uri: followed by the response_uri value |
response_uri |
The HTTPS endpoint that receives the response |
nonce |
A fresh, high-entropy value for this transaction |
dcql_query |
URL-encoded DCQL query for eu.europa.ec.av.1 (below) |
state |
Optional; recommended to bind the response to your session |
The DCQL query requests one age attribute, age_over_18 or another age_over_NN claim held by the credential:
{
"credentials": [
{
"id": "proof_of_age",
"format": "mso_mdoc",
"meta": { "doctype_value": "eu.europa.ec.av.1" },
"claims": [
{ "path": ["eu.europa.ec.av.1", "age_over_18"] }
]
}
]
}
A complete invocation, with line breaks added for readability:
av://?response_type=vp_token
&response_mode=direct_post
&client_id=redirect_uri%3Ahttps%3A%2F%2Frp.example.com%2Fav%2Fresponse%2F8f3c
&response_uri=https%3A%2F%2Frp.example.com%2Fav%2Fresponse%2F8f3c
&dcql_query=%7B%22credentials%22%3A%5B%7B%22id%22%3A%22proof_of_age%22%2C%22format%22%3A%22mso_mdoc%22%2C%22meta%22%3A%7B%22doctype_value%22%3A%22eu.europa.ec.av.1%22%7D%2C%22claims%22%3A%5B%7B%22path%22%3A%5B%22eu.europa.ec.av.1%22%2C%22age_over_18%22%5D%7D%5D%7D%5D%7D
&nonce=a541f48f-e31c-4244-9b10-86af3150d454
&state=Xb8D86wXoyQIzFc
Receive and verify the response¶
The wallet posts an unencrypted form to the response_uri:
POST /av/response/8f3c HTTP/1.1
Host: rp.example.com
Content-Type: application/x-www-form-urlencoded
vp_token=<URL-encoded JSON>&state=Xb8D86wXoyQIzFc
vp_token is a JSON object keyed by the DCQL credential id. Each value is an array of base64url-encoded ISO/IEC 18013-5 DeviceResponse structures:
Before accepting the result, the verifier must:
- Match
state(if used) to a pending transaction and reject unknown or replayed values. - Decode the
DeviceResponseand check thatdocTypeiseu.europa.ec.av.1. - Verify
issuerAuthand the issuer certificate chain against the Partenaires trust anchors, and the MSO value digests andvalidityInfo. - Verify device authentication against the OID4VP session transcript, built from this request's
client_id,response_uri, andnonce. This is what binds the response to your request. - Read the requested
age_over_NNvalue and fail closed on any error.
Because the response is not encrypted and the request is not signed, protect the response_uri with TLS, keep nonce and state single-use, and never decide from client-side data.
Try it¶
The European Commission's AV-Verifier sends av:// requests. Use it to exercise the request and response flow. It validates issuers against its own trusted list, which may not include the Partenaires test issuer, so issuer validation can fail there even when the exchange works.
Option B: France Identité OID4VP 1.0 profile¶
Use this option for iOS users until av:// is available there, or when the same exchange must also return PID attributes.
- Follow the OID4VP 1.0 guide: signed request object at a
request_uri,x509_san_dnsclient identifier, encrypteddirect_post.jwtresponse. - In the DCQL query, request only
age_over_18(orage_over_21) fromeu.europa.ec.av.1, as in its example query. - Test with the playground proof of age verifier.
References¶
- EU Age Verification technical specification, Annex A: Age Verification Profile
- EU Age Verification project
- OpenID for Verifiable Presentations 1.0
- OID4VP 1.0, the France Identité OID4VP 1.0 profile