@sphereon/oid4vci-client 0.20.1-fix.1 → 0.20.1-next.3

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.js CHANGED
@@ -425,7 +425,6 @@ var MetadataClientV1_0_15 = class _MetadataClientV1_0_15 {
425
425
  let credential_endpoint;
426
426
  let nonce_endpoint;
427
427
  let deferred_credential_endpoint;
428
- let notification_endpoint;
429
428
  let authorization_endpoint;
430
429
  let authorization_challenge_endpoint;
431
430
  let authorizationServerType = "OID4VCI";
@@ -442,7 +441,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
442
441
  credential_endpoint = credentialIssuerMetadata.credential_endpoint;
443
442
  nonce_endpoint = credentialIssuerMetadata.nonce_endpoint;
444
443
  deferred_credential_endpoint = credentialIssuerMetadata.deferred_credential_endpoint;
445
- notification_endpoint = credentialIssuerMetadata.notification_endpoint;
446
444
  if (credentialIssuerMetadata.token_endpoint) {
447
445
  token_endpoint = credentialIssuerMetadata.token_endpoint;
448
446
  }
@@ -500,13 +498,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
500
498
  deferred_credential_endpoint = authMetadata.deferred_credential_endpoint;
501
499
  }
502
500
  }
503
- if (authMetadata.notification_endpoint) {
504
- if (notification_endpoint && authMetadata.notification_endpoint !== notification_endpoint) {
505
- logger2.debug(`Credential issuer has a different notification_endpoint (${notification_endpoint}) from the Authorization Server (${authMetadata.notification_endpoint}). Will use the issuer value`);
506
- } else {
507
- notification_endpoint = authMetadata.notification_endpoint;
508
- }
509
- }
510
501
  }
511
502
  if (!authorization_endpoint) {
512
503
  logger2.debug(`Issuer ${issuer} does not expose authorization_endpoint, so only pre-auth will be supported`);
@@ -543,9 +534,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
543
534
  },
544
535
  ...deferred_credential_endpoint && {
545
536
  deferred_credential_endpoint
546
- },
547
- ...notification_endpoint && {
548
- notification_endpoint
549
537
  }
550
538
  };
551
539
  logger2.debug(`Issuer ${issuer} token endpoint ${token_endpoint}, credential endpoint ${credential_endpoint}`);
@@ -554,7 +542,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
554
542
  token_endpoint,
555
543
  credential_endpoint,
556
544
  authorization_challenge_endpoint,
557
- notification_endpoint,
558
545
  authorizationServerType,
559
546
  credentialIssuerMetadata: v15CredentialIssuerMetadata,
560
547
  authorizationServerMetadata: authMetadata
@@ -1476,11 +1463,6 @@ var CredentialRequestClient = class {
1476
1463
  });
1477
1464
  }
1478
1465
  response.access_token = requestToken;
1479
- if (uniformRequest.credential_subject_issuance && response.successBody || response.successBody?.credential_subject_issuance) {
1480
- if (JSON.stringify(uniformRequest.credential_subject_issuance) !== JSON.stringify(response.successBody?.credential_subject_issuance)) {
1481
- throw Error("Subject signing was requested, but issuer did not provide the options in its response");
1482
- }
1483
- }
1484
1466
  logger5.debug(`Credential endpoint ${credentialEndpoint} response:\r
1485
1467
  ${JSON.stringify(response, null, 2)}`);
1486
1468
  return {