Forkbomb BV [Andrea]
EUDIW PID Verifier dc+sd-jwt
Use case verification
Description:
EUDIW PID Verifier:
eu.europa.ec.eudi.pid.1 in dc+sd-jwt, using haip-vp://
QR code:
Processing YAML configuration...
Workflow YAML:
version: "1.1"
name: Eudiw PID SD-JWT verifier
env:
verifier_host: https://verifier-backend.eudiw.dev
vct: urn:eudi:pid:1
tests:
get-deeplink:
steps:
- name: Get intended use
http:
method: GET
url: ${{ env.verifier_host }}/ui/intended-uses
check:
status: /^20/
captures:
intended_use_id:
jsonpath: $.intended_uses[0].intended_use_id
- name: Create PID presentation
http:
method: POST
url: ${{ env.verifier_host }}/ui/presentations
headers:
Content-Type: application/json
check:
status: /^20/
json:
dcql_query:
credentials:
- id: query_0
format: dc+sd-jwt
meta:
vct_values:
- ${{ env.vct }}
claims:
- path:
- family_name
- path:
- given_name
- path:
- birthdate
- path:
- place_of_birth
- path:
- nationalities
- path:
- date_of_issuance
- path:
- date_of_expiry
- path:
- issuing_authority
- path:
- issuing_country
nonce: ${{ datatype.uuid | fake }}
jar_mode: by_reference
request_uri_method: get
intended_use_id: ${{ captures.intended_use_id }}
captures:
transaction_id:
jsonpath: $.transaction_id
client_id:
jsonpath: $.client_id
request_uri:
jsonpath: $.request_uri
request_uri_method:
jsonpath: $.request_uri_method
- name: Transform capture
plugin:
id: capture-plugin
params:
values:
deeplink: haip-vp://?client_id=${{ captures.client_id | url_encode }}&request_uri=${{ captures.request_uri | url_encode }}&request_uri_method=${{ captures.request_uri_method | url_encode }}
DCQL Query:
{
"dcql_query":{
"credentials":[
{
"id":"query_0",
"format":"dc+sd-jwt",
"meta":{
"vct_values":[
"urn:eudi:pid:1"
]
},
"claims":[
{
"path":[
"family_name"
]
},
{
"path":[
"given_name"
]
},
{
"path":[
"birthdate"
]
},
{
"path":[
"birth_family_name"
]
},
{
"path":[
"birth_given_name"
]
},
{
"path":[
"place_of_birth",
"locality"
]
},
{
"path":[
"address",
"formatted"
]
},
{
"path":[
"address",
"country"
]
},
{
"path":[
"address",
"region"
]
},
{
"path":[
"address",
"locality"
]
},
{
"path":[
"address",
"postal_code"
]
},
{
"path":[
"address",
"street_address"
]
},
{
"path":[
"address",
"house_number"
]
},
{
"path":[
"sex"
]
},
{
"path":[
"nationalities",
null
]
},
{
"path":[
"date_of_issuance"
]
},
{
"path":[
"date_of_expiry"
]
},
{
"path":[
"issuing_authority"
]
},
{
"path":[
"document_number"
]
},
{
"path":[
"personal_administrative_number"
]
},
{
"path":[
"issuing_country"
]
},
{
"path":[
"issuing_jurisdiction"
]
},
{
"path":[
"picture"
]
},
{
"path":[
"email"
]
},
{
"path":[
"phone_number"
]
},
{
"path":[
"trust_anchor"
]
}
]
}
]
},
"nonce":"b8f1e23b-ecd4-4eda-8edd-9ab8fe0a6ec7",
"request_uri_method":"get"
}