Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define claims display description and claims path query #276

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
10 changes: 5 additions & 5 deletions examples/authorization_details_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"type": "openid_credential",
"credential_configuration_id": "UniversityDegreeCredential",
"credential_definition": {
"credentialSubject": {
"given_name": {},
"family_name": {},
"degree": {}
}
"credentialSubject": [
{"path": ["given_name"]},
{"path": ["family_name"]},
{"path": ["degree"]}
]
}
}
]
10 changes: 5 additions & 5 deletions examples/authorization_details_ldp_vc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"type": "openid_credential",
"credential_configuration_id": "UniversityDegree_LDP_VC",
"credential_definition": {
"credentialSubject": {
"given_name": {},
"family_name": {},
"degree": {}
}
"credentialSubject": [
{"path": ["given_name"]},
{"path": ["family_name"]},
{"path": ["degree"]}
]
}
}
]
16 changes: 8 additions & 8 deletions examples/authorization_details_mso_doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"type": "openid_credential",
"credential_configuration_id": "org.iso.18013.5.1.mDL",
"claims": {
"org.iso.18013.5.1": {
"given_name": {},
"family_name": {},
"birth_date": {}
},
"org.iso.18013.5.1.aamva": {
"organ_donor": {}
}
"org.iso.18013.5.1": [
{"path": ["given_name"]},
{"path": ["family_name"]},
{"path": ["birth_date"]}
],
"org.iso.18013.5.1.aamva": [
{"path": ["organ_donor"]}
]
Comment on lines +6 to +13
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be changed to use the same structure as in the new query language (namespace/claim_name)

}
}
]
21 changes: 13 additions & 8 deletions examples/credential_issuer_metadata_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,37 +34,42 @@
"credential_signing_alg_values_supported": [
"ES256"
],
"credential_definition": {
"credential_definition":{
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {
"credentialSubject": [
{
"path": ["given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
"family_name": {
{
"path": ["family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"degree": {},
"gpa": {
{
"path": ["degree"]
},
{
"path": ["gpa"],
"display": [
{
"name": "GPA"
}
]
}
}
]
},
"proof_types_supported": {
"jwt": {
Expand All @@ -78,7 +83,7 @@
"name": "University Credential",
"locale": "en-US",
"logo": {
"uri": "https://university.example.edu/public/logo.png",
"url": "https://university.example.edu/public/logo.png",
"alt_text": "a square logo of a university"
},
"background_color": "#12107c",
Expand Down
19 changes: 12 additions & 7 deletions examples/credential_metadata_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,43 @@
"credential_signing_alg_values_supported": [
"ES256"
],
"credential_definition": {
"credential_definition":{
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {
"credentialSubject": [
{
"path": ["given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
"family_name": {
{
"path": ["family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"degree": {},
"gpa": {
{
"path": ["degree"]
},
{
"path": ["gpa"],
"mandatory": true,
"display": [
{
"name": "GPA"
}
]
}
}
]
},
"proof_types_supported": {
"jwt": {
Expand Down
17 changes: 11 additions & 6 deletions examples/credential_metadata_ldp_vc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,38 @@
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {
"credentialSubject": [
{
"path": ["given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
"family_name": {
{
"path": ["family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"degree": {},
"gpa": {
{
"path": ["degree"]
},
{
"path": ["gpa"],
"mandatory": true,
"display": [
{
"name": "GPA"
}
]
}
}
]
},
"display": [
{
Expand Down
29 changes: 16 additions & 13 deletions examples/credential_metadata_mso_mdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
"cose_key"
],
"credential_signing_alg_values_supported": [
"ES256",
"ES384",
"ES512"
"ES256", "ES384", "ES512"
],
"display": [
{
"name": "Mobile Driving License",
"locale": "en-US",
"logo": {
"uri": "https://state.example.org/public/mdl.png",
"url": "https://state.example.org/public/mdl.png",
"alt_text": "state mobile driving license"
},
"background_color": "#12107c",
Expand All @@ -26,16 +24,17 @@
"name": "モバイル運転免許証",
"locale": "ja-JP",
"logo": {
"uri": "https://state.example.org/public/mdl.png",
"url": "https://state.example.org/public/mdl.png",
"alt_text": "米国州発行のモバイル運転免許証"
},
"background_color": "#12107c",
"text_color": "#FFFFFF"
}
],
"claims": {
"org.iso.18013.5.1": {
"given_name": {
"org.iso.18013.5.1": [
{
"path": ["given_name"],
"display": [
{
"name": "Given Name",
Expand All @@ -47,21 +46,25 @@
}
]
},
"family_name": {
{
"path": ["family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"birth_date": {
{
"path": ["birth_date"],
"mandatory": true
}
},
"org.iso.18013.5.1.aamva": {
"organ_donor": {}
}
],
"org.iso.18013.5.1.aamva": [
{
"path": ["organ_donor"]
}
]
}
}
}
Expand Down
36 changes: 18 additions & 18 deletions examples/credential_metadata_sd_jwt_vc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
{
"name": "IdentityCredential",
"logo": {
"uri": "https://university.example.edu/public/logo.png",
"alt_text": "a square logo of a university"
"uri": "https://university.example.edu/public/logo.png",
"alt_text": "a square logo of a university"
},
"locale": "en-US",
"background_color": "#12107c",
Expand All @@ -29,8 +29,9 @@
}
},
"vct": "SD_JWT_VC_example_in_OpenID4VCI",
"claims": {
"given_name": {
"claims": [
{
"path": ["given_name"],
"display": [
{
"name": "Given Name",
Expand All @@ -42,7 +43,8 @@
}
]
},
"family_name": {
{
"path": ["family_name"],
"display": [
{
"name": "Surname",
Expand All @@ -54,19 +56,17 @@
}
]
},
"email": {},
"phone_number": {},
"address": {
"street_address": {},
"locality": {},
"region": {},
"country": {}
},
"birthdate": {},
"is_over_18": {},
"is_over_21": {},
"is_over_65": {}
}
{"path": ["email"]},
{"path": ["phone_number"]},
{"path": ["address", "street_address"]},
{"path": ["address", "locality"]},
{"path": ["address", "region"]},
{"path": ["address", "country"]},
{"path": ["birthdate"]},
{"path": ["is_over_18"]},
{"path": ["is_over_21"]},
{"path": ["is_over_65"]}
]
}
}
}
32 changes: 16 additions & 16 deletions examples/credential_request_iso_mdl_with_claims.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"format": "mso_mdoc",
"doctype": "org.iso.18013.5.1.mDL",
"claims": {
"org.iso.18013.5.1": {
"given_name": {},
"family_name": {},
"birth_date": {}
},
"org.iso.18013.5.1.aamva": {
"organ_donor": {}
}
},
"proof": {
"proof_type": "jwt",
"jwt": "eyJraWQiOiJkaWQ6ZXhhbXBsZ...KPxgihac0aW9EkL1nOzM"
}
"format": "mso_mdoc",
"doctype": "org.iso.18013.5.1.mDL",
"claims": {
"org.iso.18013.5.1": [
{"path": ["given_name"]},
{"path": ["family_name"]},
{"path": ["birth_date"]}
],
"org.iso.18013.5.1.aamva": [
{"path": ["organ_donor"]}
]
},
"proof": {
"proof_type": "jwt",
"jwt": "eyJraWQiOiJkaWQ6ZXhhbXBsZ...KPxgihac0aW9EkL1nOzM"
}
}
Loading