@sphereon/ssi-sdk-ext.identifier-resolution 0.36.1-feature.SSISDK.82.and.SSISDK.70.35 → 0.36.1-feature.integration.fides.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +13 -13
- package/src/functions/externalIdentifierFunctions.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -5262,7 +5262,13 @@ async function resolveExternalDidIdentifier(opts, context) {
|
|
|
5262
5262
|
}).resolve(did);
|
|
5263
5263
|
const didDocument = didResolutionResult.didDocument ?? void 0;
|
|
5264
5264
|
const didJwks = didDocument ? (0, import_ssi_sdk_ext4.didDocumentToJwks)(didDocument) : void 0;
|
|
5265
|
-
const jwks = didJwks ? Array.from(new Set(Array.from(Object.values(didJwks).filter((jwks2) => (0, import_utils.isDefined)(jwks2) && jwks2.length > 0).flatMap((jwks2) => jwks2)).
|
|
5265
|
+
const jwks = didJwks ? Array.from(new Set(Array.from(Object.values(didJwks).filter((jwks2) => (0, import_utils.isDefined)(jwks2) && jwks2.length > 0).flatMap((jwks2) => jwks2)).filter((jwk) => {
|
|
5266
|
+
if (!didParsed.fragment) {
|
|
5267
|
+
return true;
|
|
5268
|
+
}
|
|
5269
|
+
const fullKid = `${didParsed.did}#${didParsed.fragment}`;
|
|
5270
|
+
return jwk.kid === fullKid || jwk.kid === didParsed.fragment;
|
|
5271
|
+
}).flatMap((jwk) => {
|
|
5266
5272
|
return {
|
|
5267
5273
|
jwk,
|
|
5268
5274
|
jwkThumbprint: (0, import_ssi_sdk_ext5.calculateJwkThumbprint)({
|