Fix json samples

Fixes #79

Updated ob3/simple-did-web-method.json and ob3/credential-status-revoked.json with fresh exports from Wellspring Portal.

I also gave the AchievementCredentials names that correspond to the json file names so they are easier to update if needed.

Once we get the BadgeConnect API working, we can probably update the tests to simply GET the credentials.
This commit is contained in:
Andy Miller (IMS) 2023-05-23 10:18:46 +09:00
parent 09647272ff
commit 8e9546db0f
2 changed files with 85 additions and 61 deletions

View File

@ -1,7 +1,15 @@
{ {
"@context" : [ "https://www.w3.org/2018/credentials/v1", "https://purl.imsglobal.org/spec/ob/v3p0/context.json", "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", "https://w3id.org/security/suites/ed25519-2020/v1" ], "@context": [
"https://www.w3.org/2018/credentials/v1",
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.1.json",
"https://purl.imsglobal.org/spec/ob/v3p0/extensions.json",
"https://w3id.org/security/suites/ed25519-2020/v1"
],
"id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/credential/54418d3f-ec01-4652-800a-861c890a51a1", "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/credential/54418d3f-ec01-4652-800a-861c890a51a1",
"type" : [ "VerifiableCredential", "AchievementCredential" ], "type": [
"VerifiableCredential",
"AchievementCredential"
],
"issuer": { "issuer": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c",
"type": "Profile", "type": "Profile",
@ -12,8 +20,8 @@
"name": "1EdTech Testing" "name": "1EdTech Testing"
}, },
"awardedDate": "2023-05-22T10:21:00Z", "awardedDate": "2023-05-22T10:21:00Z",
"issuanceDate" : "2023-05-22T01:25:28Z", "issuanceDate": "2023-05-23T01:10:41Z",
"name" : "credential-status-revoked", "name": "ob3-credential-status-revoked.json",
"description": "This achievement credential is used in ims-inspector OB30Tests.", "description": "This achievement credential is used in ims-inspector OB30Tests.",
"credentialSubject": { "credentialSubject": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29",
@ -48,9 +56,9 @@
}, },
"proof": { "proof": {
"type": "Ed25519Signature2020", "type": "Ed25519Signature2020",
"created" : "2023-05-22T01:25:28Z", "created": "2023-05-23T01:10:41Z",
"proofPurpose": "assertionMethod", "proofPurpose": "assertionMethod",
"verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0", "verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0",
"proofValue" : "zXx8gzfqZT6snD9ZkJfMmRDVm1qoKt5gRoSnev6rTeQ4tCLPivv4ocpDEFpKwxyXakAqa76duAhfNcqUeWfnBasp" "proofValue": "z2gcheWGoh5y9Ft4Cd6uoAsEmQuWZAqppPtQifmnddddJqVw1dJLuUrWkaX3MGV2GUedeNAbFJ7b7xDTnd51nvWSr"
} }
} }

View File

@ -1,47 +1,63 @@
{ {
"@context": [ "@context": [
"https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/v1",
"https://purl.imsglobal.org/spec/ob/v3p0/context.json", "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.1.json",
"https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json",
"https://w3id.org/security/suites/ed25519-2020/v1" "https://w3id.org/security/suites/ed25519-2020/v1"
], ],
"id": "http://dc.1edtech.org/wellspring2022/wellspring-portal/credentials/5d7b7ff6-b1d5-47d5-83df-faf22533ba8f", "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/credential/d002b4e9-6fd9-4af0-b1f7-faa9237b46ca",
"type": [ "type": [
"VerifiableCredential", "VerifiableCredential",
"AchievementCredential" "AchievementCredential"
], ],
"issuer": { "issuer": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:7ad80b28-4f3f-414d-85ec-6c0684344e5c", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c",
"type": "Profile", "type": "Profile",
"name": "Wellspring School" "address": {
"type": "Address",
"addressCountry": "Japan"
}, },
"awardedDate": "2023-05-16T11:27:00Z", "name": "1EdTech Testing"
"issuanceDate": "2023-05-16T07:18:52Z", },
"name": "Simple assertion of achievement 1", "awardedDate": "2023-05-22T14:09:00Z",
"issuanceDate": "2023-05-23T01:07:22Z",
"name": "ob3-simple-did-web-method.json",
"credentialSubject": { "credentialSubject": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:d4e1f6ad-9696-41cb-8729-8ff741f96c6a", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29",
"type": "AchievementSubject", "type": "AchievementSubject",
"achievement": { "achievement": {
"id": "http://dc.1edtech.org/wellspring2022/wellspring-portal/achievements/c44d8939-c237-4420-902c-9af305b15e2f", "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/achievement/66457db3-fb3d-4ae3-8f32-bc8c79c9f0db",
"type": "Achievement", "type": "Achievement",
"achievementType": "Achievement", "achievementType": "Achievement",
"criteria": { "criteria": {
"narrative": "The credential must pass verification." "narrative": "Passes tests"
}, },
"description": "This is a test achievement.", "description": "A second testing achievement",
"name": "Achievement 1" "name": "Achievement 2"
}, },
"source": { "source": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:7ad80b28-4f3f-414d-85ec-6c0684344e5c", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c",
"type": "Profile", "type": "Profile",
"name": "Wellspring School" "address": {
"type": "Address",
"addressCountry": "Japan"
},
"name": "1EdTech Testing"
} }
}, },
"credentialStatus": {
"id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/api/revocations/da1e96e9-afcc-4eed-b9a2-2ddf7353214c",
"type": "1EdTechRevocationList"
},
"refreshService": {
"id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/api/refresh/d002b4e9-6fd9-4af0-b1f7-faa9237b46ca",
"type": "1EdTechCredentialRefresh"
},
"proof": { "proof": {
"type": "Ed25519Signature2020", "type": "Ed25519Signature2020",
"created": "2023-05-16T07:18:52Z", "created": "2023-05-23T01:07:22Z",
"proofPurpose": "assertionMethod", "proofPurpose": "assertionMethod",
"verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:7ad80b28-4f3f-414d-85ec-6c0684344e5c#key-0", "verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0",
"proofValue": "zYQ6iszNf2qCqisuWvk1AkerTTp69RiofNWWzWp4s5TJwzBfFgieBSA5Knyjco6crJbPkJ1mvM1hzA2HLYfU8w8C" "proofValue": "z5tVhex5rV9aTxTrGh26uyVdC6BWXG8dQCkzNjgkPWtwAjGzMyYXzrQYJ2XrKUsNpYE3fTXsgUSBwDCY11vbyGBw7"
} }
} }