@sphereon/ssi-sdk.siopv2-oid4vp-op-auth 0.34.1-feature.SSISDK.57.uni.client.206 → 0.34.1-feature.SSISDK.58.host.nonce.endpoint.194
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 +25 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +19 -19
- package/src/services/Siopv2MachineService.ts +12 -15
- package/src/utils/CredentialUtils.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1287,12 +1287,13 @@ var Siopv2Machine = class {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
|
|
1289
1289
|
// src/services/Siopv2MachineService.ts
|
|
1290
|
-
import {
|
|
1290
|
+
import { SupportedVersion as SupportedVersion2 } from "@sphereon/did-auth-siop";
|
|
1291
1291
|
import { isOID4VCIssuerIdentifier } from "@sphereon/ssi-sdk-ext.identifier-resolution";
|
|
1292
|
-
import { encodeJoseBlob } from "@sphereon/ssi-sdk.core";
|
|
1293
1292
|
import { verifiableCredentialForRoleFilter } from "@sphereon/ssi-sdk.credential-store";
|
|
1294
1293
|
import { ConnectionType } from "@sphereon/ssi-sdk.data-store";
|
|
1295
|
-
import {
|
|
1294
|
+
import { CredentialRole } from "@sphereon/ssi-types";
|
|
1295
|
+
import { CredentialMapper as CredentialMapper3, Loggers as Loggers3 } from "@sphereon/ssi-types";
|
|
1296
|
+
import { encodeJoseBlob } from "@sphereon/ssi-sdk.core";
|
|
1296
1297
|
import { DcqlPresentation, DcqlQuery } from "dcql";
|
|
1297
1298
|
|
|
1298
1299
|
// src/utils/dcql.ts
|
|
@@ -1333,6 +1334,7 @@ function convertToDcqlCredentials(credential, hasher) {
|
|
|
1333
1334
|
__name(convertToDcqlCredentials, "convertToDcqlCredentials");
|
|
1334
1335
|
|
|
1335
1336
|
// src/services/Siopv2MachineService.ts
|
|
1337
|
+
import { getOrCreatePrimaryIdentifier, SupportedDidMethodEnum } from "@sphereon/ssi-sdk-ext.did-utils";
|
|
1336
1338
|
var logger3 = Loggers3.DEFAULT.get(LOGGER_NAMESPACE);
|
|
1337
1339
|
var siopSendAuthorizationResponse = /* @__PURE__ */ __name(async (connectionType, args, context) => {
|
|
1338
1340
|
const { agent } = context;
|
|
@@ -1347,7 +1349,7 @@ var siopSendAuthorizationResponse = /* @__PURE__ */ __name(async (connectionType
|
|
|
1347
1349
|
const aud = request.authorizationRequest.getMergedProperty("aud");
|
|
1348
1350
|
logger3.debug(`AUD: ${aud}`);
|
|
1349
1351
|
logger3.debug(JSON.stringify(request.authorizationRequest));
|
|
1350
|
-
const domain = await request.authorizationRequest.getMergedProperty("client_id") ?? request.issuer ?? "https://self-issued.me/v2";
|
|
1352
|
+
const domain = await request.authorizationRequest.getMergedProperty("client_id") ?? request.issuer ?? (request.versions.includes(SupportedVersion2.JWT_VC_PRESENTATION_PROFILE_v1) ? "https://self-issued.me/v2/openid-vc" : "https://self-issued.me/v2");
|
|
1351
1353
|
logger3.debug(`NONCE: ${session.nonce}, domain: ${domain}`);
|
|
1352
1354
|
const firstUniqueDC = credentials[0];
|
|
1353
1355
|
if (typeof firstUniqueDC !== "object" || !("digitalCredential" in firstUniqueDC)) {
|