Skip to content

Commit

Permalink
chore: update pex
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Sep 18, 2024
1 parent adda8b4 commit 15ff109
Show file tree
Hide file tree
Showing 3 changed files with 626 additions and 23 deletions.
4 changes: 3 additions & 1 deletion packages/siop-oid4vp/lib/helpers/Revocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const verifyRevocation = async (
throw new Error(`Revocation callback not provided`)
}

const vcs = CredentialMapper.isWrappedSdJwtVerifiablePresentation(vpToken) ? [vpToken.vcs[0]] : vpToken.presentation.verifiableCredential
const vcs = (CredentialMapper.isWrappedSdJwtVerifiablePresentation(vpToken) || CredentialMapper.isWrappedMdocPresentation(vpToken))
? [vpToken.vcs[0]] : vpToken.presentation.verifiableCredential
for (const vc of vcs) {
if (
revocationVerification === RevocationVerification.ALWAYS ||
Expand All @@ -38,6 +39,7 @@ function originalTypeToVerifiableCredentialTypeFormat(original: WrappedVerifiabl
jwt_vc: VerifiableCredentialTypeFormat.JWT_VC,
ldp: VerifiableCredentialTypeFormat.LDP_VC,
ldp_vc: VerifiableCredentialTypeFormat.LDP_VC,
mso_mdoc: VerifiableCredentialTypeFormat.MSO_MDOC
}

return mapping[original]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,9 @@ export const AuthorizationResponseOptsSchemaObj = {
"jwt": {
"type": "string"
},
"mso_mdoc": {
"type": "string"
},
"nonce": {
"type": "string"
},
Expand Down Expand Up @@ -1968,7 +1971,9 @@ export const AuthorizationResponseOptsSchemaObj = {
"JcsEd25519Signature2020",
"BbsBlsSignatureProof2020",
"BbsBlsBoundSignatureProof2020",
"JwtProof2020"
"JwtProof2020",
"SdJwtProof2024",
"MsoMdocProof2024"
]
},
"IProofPurpose": {
Expand Down
Loading

0 comments on commit 15ff109

Please sign in to comment.