Skip to content

Commit

Permalink
Define claims display description and claims path query (#276)
Browse files Browse the repository at this point in the history
10 approvals. open for more than a week. WG approval to merge
  • Loading branch information
danielfett authored Dec 17, 2024
1 parent 9e74356 commit ba24382
Show file tree
Hide file tree
Showing 9 changed files with 377 additions and 196 deletions.
12 changes: 5 additions & 7 deletions examples/authorization_details_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
{
"type": "openid_credential",
"credential_configuration_id": "UniversityDegreeCredential",
"credential_definition": {
"credentialSubject": {
"given_name": {},
"family_name": {},
"degree": {}
}
}
"claims": [
{"path": ["credentialSubject", "given_name"]},
{"path": ["credentialSubject", "family_name"]},
{"path": ["credentialSubject", "degree"]}
]
}
]
12 changes: 5 additions & 7 deletions examples/authorization_details_ldp_vc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
{
"type": "openid_credential",
"credential_configuration_id": "UniversityDegree_LDP_VC",
"credential_definition": {
"credentialSubject": {
"given_name": {},
"family_name": {},
"degree": {}
}
}
"claims": [
{"path": ["credentialSubject", "given_name"]},
{"path": ["credentialSubject", "family_name"]},
{"path": ["credentialSubject", "degree"]}
]
}
]
16 changes: 6 additions & 10 deletions examples/authorization_details_mso_doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
{
"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": {}
}
}
"claims": [
{"path": ["org.iso.18013.5.1","given_name"]},
{"path": ["org.iso.18013.5.1","family_name"]},
{"path": ["org.iso.18013.5.1","birth_date"]},
{"path": ["org.iso.18013.5.1.aamva","organ_donor"]}
]
}
]
61 changes: 33 additions & 28 deletions examples/credential_issuer_metadata_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,43 @@
"credential_signing_alg_values_supported": [
"ES256"
],
"credential_definition": {
"credential_definition":{
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
"family_name": {
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"degree": {},
"gpa": {
"display": [
{
"name": "GPA"
}
]
}
}
]
},
"claims": [
{
"path": ["credentialSubject", "given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
{
"path": ["credentialSubject", "family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
{
"path": ["credentialSubject", "degree"]
},
{
"path": ["credentialSubject", "gpa"],
"display": [
{
"name": "GPA"
}
]
}
],
"proof_types_supported": {
"jwt": {
"proof_signing_alg_values_supported": [
Expand Down
61 changes: 33 additions & 28 deletions examples/credential_metadata_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,40 @@
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
"family_name": {
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"degree": {},
"gpa": {
"mandatory": true,
"display": [
{
"name": "GPA"
}
]
}
}
]
},
"claims": [
{
"path": ["credentialSubject", "given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
{
"path": ["credentialSubject", "family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
{
"path": ["credentialSubject", "degree"]
},
{
"path": ["credentialSubject", "gpa"],
"mandatory": true,
"display": [
{
"name": "GPA"
}
]
}
],
"proof_types_supported": {
"jwt": {
"proof_signing_alg_values_supported": [
Expand Down
65 changes: 37 additions & 28 deletions examples/credential_metadata_ldp_vc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,44 @@
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
"family_name": {
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"degree": {},
"gpa": {
"mandatory": true,
"display": [
{
"name": "GPA"
}
]
}
}
]
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
]
},
"claims": [
{
"path": ["credentialSubject", "given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
}
]
},
{
"path": ["credentialSubject", "family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
{
"path": ["credentialSubject", "degree"]
},
{
"path": ["credentialSubject", "gpa"],
"mandatory": true,
"display": [
{
"name": "GPA"
}
]
}
],
"display": [
{
"name": "University Credential",
Expand Down
61 changes: 29 additions & 32 deletions examples/credential_metadata_mso_mdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"cose_key"
],
"credential_signing_alg_values_supported": [
"ES256",
"ES384",
"ES512"
"ES256", "ES384", "ES512"
],
"display": [
{
Expand All @@ -33,36 +31,35 @@
"text_color": "#FFFFFF"
}
],
"claims": {
"org.iso.18013.5.1": {
"given_name": {
"display": [
{
"name": "Given Name",
"locale": "en-US"
},
{
"name": "名前",
"locale": "ja-JP"
}
]
},
"family_name": {
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
"birth_date": {
"mandatory": true
}
"claims": [
{
"path": ["org.iso.18013.5.1","given_name"],
"display": [
{
"name": "Given Name",
"locale": "en-US"
},
{
"name": "名前",
"locale": "ja-JP"
}
]
},
"org.iso.18013.5.1.aamva": {
"organ_donor": {}
}
}
{
"path": ["org.iso.18013.5.1","family_name"],
"display": [
{
"name": "Surname",
"locale": "en-US"
}
]
},
{
"path": ["org.iso.18013.5.1","birth_date"],
"mandatory": true
},
{"path": ["org.iso.18013.5.1.aamva","organ_donor"]}
]
}
}
}
Loading

0 comments on commit ba24382

Please sign in to comment.