Skip to content

Commit

Permalink
make manual status check for sd credentials
Browse files Browse the repository at this point in the history
Signed-off-by: F-Node-Karlsruhe <christian.fries@eecc.de>
  • Loading branch information
F-Node-Karlsruhe committed Nov 14, 2023
1 parent 85e132a commit d07ee80
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WIP
---

- introduce static contexts
- manual status checks for SD credentials


1.7.4 (2023-10-10)
Expand Down
19 changes: 16 additions & 3 deletions api/src/services/verifier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,24 @@ export class Verifier {
result = await jsigs.verify(credential, {
suite,
purpose: new AssertionProofPurpose(),
documentLoader,
// give it to jsigs anyway - does not get verified
checkStatus
documentLoader
});

// make manual status as long as not implemented in jsigs
if (checkStatus) {
result.statusResult = await checkStatus({
credential,
documentLoader,
suite,
verifyStatusListCredential: true,
verifyMatchingIssuers: false
});
if (!result.statusResult.verified) {
result.verified = false;
}
}


} else {

result = await verifyCredential({ credential, suite, documentLoader, checkStatus });
Expand Down

0 comments on commit d07ee80

Please sign in to comment.