diff --git a/src/controllers/api/credential.ts b/src/controllers/api/credential.ts index 040a90e3..099dd8c2 100644 --- a/src/controllers/api/credential.ts +++ b/src/controllers/api/credential.ts @@ -256,7 +256,8 @@ export class CredentialController { public async verify(request: Request, response: Response) { // Get params from request const { credential, policies } = request.body as VerifyCredentialRequestBody; - const { verifyStatus, allowDeactivatedDid } = request.query as VerifyCredentialRequestQuery; + const { verifyStatus, allowDeactivatedDid, fetchRemoteContexts } = + request.query as VerifyCredentialRequestQuery; // Create credential object const cheqdCredential = new CheqdW3CVerifiableCredential(credential); @@ -275,6 +276,7 @@ export class CredentialController { { verifyStatus, policies, + fetchRemoteContexts, }, response.locals.customer ); diff --git a/tests/e2e/parallel/credential/issue-verify-flow.spec.ts b/tests/e2e/parallel/credential/issue-verify-flow.spec.ts index f17c729e..7aac759a 100644 --- a/tests/e2e/parallel/credential/issue-verify-flow.spec.ts +++ b/tests/e2e/parallel/credential/issue-verify-flow.spec.ts @@ -138,7 +138,7 @@ test(' Issue a jsonLD credential with Ed25519VerificationKey2020', async ({ requ expect(result.verified).toBe(true); }); -test.skip(' Issue a jsonLD credential with JsonWebKey2020', async ({ request }) => { +test(' Issue a jsonLD credential with JsonWebKey2020', async ({ request }) => { const credentialData = JSON.parse( fs.readFileSync(`${PAYLOADS_PATH.CREDENTIAL}/credential-issue-jsonld-jsonwebkey-2020.json`, 'utf-8') ); diff --git a/tests/e2e/payloads/credential/credential-issue-jsonld-ed25519-2020.json b/tests/e2e/payloads/credential/credential-issue-jsonld-ed25519-2020.json index 857220d6..0809b635 100644 --- a/tests/e2e/payloads/credential/credential-issue-jsonld-ed25519-2020.json +++ b/tests/e2e/payloads/credential/credential-issue-jsonld-ed25519-2020.json @@ -2,8 +2,8 @@ "issuerDid": "did:cheqd:testnet:11ceabbd-1fdc-46c0-a15d-534c07926d2b", "subjectDid": "did:key:z6MkqJNR1DHxX2qxqDYx9tNDsXoNRVpaVvJkLPeCYqaARz1n", "attributes": { - "nothing": "else matters" + "name": "Bob" }, - "@context": ["custom:example.context"], + "@context": ["https://www.w3.org/2018/credentials/v1", "https://veramo.io/contexts/profile/v1"], "format": "jsonld" } diff --git a/tests/e2e/payloads/credential/credential-issue-jsonld-jsonwebkey-2020.json b/tests/e2e/payloads/credential/credential-issue-jsonld-jsonwebkey-2020.json index 52ba46c7..08e85b83 100644 --- a/tests/e2e/payloads/credential/credential-issue-jsonld-jsonwebkey-2020.json +++ b/tests/e2e/payloads/credential/credential-issue-jsonld-jsonwebkey-2020.json @@ -4,6 +4,6 @@ "attributes": { "name": "Bob" }, - "@context": ["https://www.w3.org/2018/credentials/v1"], + "@context": ["https://www.w3.org/2018/credentials/v1", "https://veramo.io/contexts/profile/v1"], "format": "jsonld" }