Skip to content

Commit

Permalink
Merge branch 'main' into danielfett/fix-claims-in-issuer-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfett committed Nov 19, 2024
2 parents 8e37c65 + 2555d4e commit 504514b
Show file tree
Hide file tree
Showing 15 changed files with 591 additions and 476 deletions.
8 changes: 8 additions & 0 deletions examples/credential_request_iso_mdl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"format": "mso_mdoc",
"doctype": "org.iso.18013.5.1.mDL",
"proof": {
"proof_type": "jwt",
"jwt": "eyJraWQiOiJkaWQ6ZXhhbXBsZ...KPxgihac0aW9EkL1nOzM"
}
}
18 changes: 0 additions & 18 deletions examples/credential_request_iso_mdl_with_claims.json

This file was deleted.

20 changes: 0 additions & 20 deletions examples/credential_request_jwt_vc_json-ld.json

This file was deleted.

21 changes: 0 additions & 21 deletions examples/credential_request_jwt_vc_json_with_claims.json

This file was deleted.

20 changes: 0 additions & 20 deletions examples/credential_request_ldp_vc.json

This file was deleted.

43 changes: 0 additions & 43 deletions examples/credential_request_ldp_vc_vp.json

This file was deleted.

8 changes: 0 additions & 8 deletions examples/credential_request_sd_jwt_vc.json

This file was deleted.

55 changes: 37 additions & 18 deletions examples/credential_response_jwt_vc_json.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,40 @@ Content-Type: application/json
Cache-Control: no-store

{
"credential": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2YyI6eyJAY29udGV4dCI
6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSIsImh0dHBzOi8vd3d3Ln
czLm9yZy8yMDE4L2NyZWRlbnRpYWxzL2V4YW1wbGVzL3YxIl0sImlkIjoiaHR0cDovL2V4YW1wb
GUuZWR1L2NyZWRlbnRpYWxzLzM3MzIiLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwi
VW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWwiXSwiaX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VTNacWVGVTJURGhETjBkVlR6UmtjMm
hKV1ZZemVtSjJSbmRyV1VJME0xbEtOVXQwZERoRklpd2lhM1I1SWpvaVJVTW
lMQ0pqY25ZaU9pSlFMVEkxTmlJc0ltRnNaeUk2SWtWVE1qVTJJaXdpZUNJNk
lrMWtReTFQUzNFMFFWRktabFpEV0RWNmNGRnZURGhxTkZaRlpuWlFXRGs0ZE
ZVNWFIaGpUbGhIY204aUxDSjVJam9pYm5OWGJtWmlOazVYYzBzek9VSklMV2
hCWVZOclExTmxORUo1YldWT2MyTktSVjl6WVVRelJETmlUU0o5In0.k13xQC
nQIKAIuwQIbg37dwlNr8D6_2YUQtDTVQCq-ZsjcXxHagGC_VIZtd7RpR8OvB
zTBHVwrBRD-_RzoV2Ofg"
}
]
}
58 changes: 30 additions & 28 deletions examples/credential_response_ldp_vc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,36 @@ Content-Type: application/json
Cache-Control: no-store

{
"credential": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://example.edu/credentials/3732",
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"issuer": "https://example.edu/issuers/565049",
"issuanceDate": "2010-01-01T00:00:00Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
"credentials": [
{
"credential": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://example.edu/credentials/3732",
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"issuer": "https://example.edu/issuers/565049",
"issuanceDate": "2010-01-01T00:00:00Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2022-02-25T14:58:43Z",
"verificationMethod": "https://example.edu/issuers/565049#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "zeEdUoM7m9cY8ZyTpey83yBKeBcmcvbyrEQzJ19rD2UXArU2U1
jPGoEtrRvGYppdiK37GU4NBeoPakxpWhAvsVSt"
}
}
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2022-02-25T14:58:43Z",
"verificationMethod": "https://example.edu/issuers/565049#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "zeEdUoM7m9cY8ZyTpey83yBKeBcmcvbyrEQzJ19rD2UXArU2U1jPGoEt
rRvGYppdiK37GU4NBeoPakxpWhAvsVSt"
}
},
"c_nonce": "fGFF7UkhLa",
"c_nonce_expires_in": 86400
]
}
6 changes: 5 additions & 1 deletion examples/credential_response_mso_mdoc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ Content-Type: application/json
Cache-Control: no-store

{
"credential": "omppc3N1ZXJBdXRohEOhASahG...ArQwggKwMIICVqADAgEC"
"credentials": [
{
"credential": "omppc3N1ZXJBdXRohEOhASahG...ArQwggKwMIICVqADAgEC"
}
]
}
66 changes: 36 additions & 30 deletions examples/credential_response_sd_jwt_vc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,40 @@ Content-Type: application/json
Cache-Control: no-store

{
"credential": "eyJhbGciOiAiRVMyNTYiLCAidHlwIjogInZjK3NkLWp3dCIsI
CJraWQiOiAiZG9jLXNpZ25lci0wNS0yNS0yMDIyIn0.eyJfc2QiOiBbIjA5dktyS
k1PbHlUV00wc2pwdV9wZE9CVkJRMk0xeTNLaHBINTE1blhrcFkiLCAiMnJzakdiY
UMwa3k4bVQwcEpyUGlvV1RxMF9kYXcxc1g3NnBvVWxnQ3diSSIsICJFa084ZGhXM
GRIRUpidlVIbEVfVkNldUM5dVJFTE9pZUxaaGg3WGJVVHRBIiwgIklsRHpJS2VpW
mREd3BxcEs2WmZieXBoRnZ6NUZnbldhLXNONndxUVhDaXciLCAiSnpZakg0c3Zsa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aW9uIjogIkF
ueXN0YXRlIiwgImNvdW50cnkiOiAiVVMifV0~WyJBSngtMDk1VlBycFR0TjR
RTU9xUk9BIiwgImJpcnRoZGF0ZSIsICIxOTQwLTAxLTAxIl0~WyJQYzMzSk0
yTGNoY1VfbEhnZ3ZfdWZRIiwgImlzX292ZXJfMTgiLCB0cnVlXQ~WyJHMDJO
U3JRZmpGWFE3SW8wOXN5YWpBIiwgImlzX292ZXJfMjEiLCB0cnVlXQ~WyJsa
2x4RjVqTVlsR1RQVW92TU5JdkNBIiwgImlzX292ZXJfNjUiLCB0cnVlXQ~"
}
]
}
12 changes: 12 additions & 0 deletions examples/issuer_jwks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"jwks": [
{
"kid": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:mlUpog7vEewFBem6Ul09c2dtTwc8dFzVpIDX3sqGWW0",
"kty": "EC",
"crv": "P-256",
"alg": "ES256",
"x": "_LC1FTUl0MltKAOQzXNsofVMpWFV2obLGrNCat_CQ-g",
"y": "kBjoyjNuMVAOq--qVUgylDoLKuMdk4imS-Kk5ahuYIU"
}
]
}
Loading

0 comments on commit 504514b

Please sign in to comment.