@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.cjs +0 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -482,7 +482,6 @@ var MetadataClientV1_0_15 = class _MetadataClientV1_0_15 {
|
|
|
482
482
|
let credential_endpoint;
|
|
483
483
|
let nonce_endpoint;
|
|
484
484
|
let deferred_credential_endpoint;
|
|
485
|
-
let notification_endpoint;
|
|
486
485
|
let authorization_endpoint;
|
|
487
486
|
let authorization_challenge_endpoint;
|
|
488
487
|
let authorizationServerType = "OID4VCI";
|
|
@@ -499,7 +498,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
|
|
|
499
498
|
credential_endpoint = credentialIssuerMetadata.credential_endpoint;
|
|
500
499
|
nonce_endpoint = credentialIssuerMetadata.nonce_endpoint;
|
|
501
500
|
deferred_credential_endpoint = credentialIssuerMetadata.deferred_credential_endpoint;
|
|
502
|
-
notification_endpoint = credentialIssuerMetadata.notification_endpoint;
|
|
503
501
|
if (credentialIssuerMetadata.token_endpoint) {
|
|
504
502
|
token_endpoint = credentialIssuerMetadata.token_endpoint;
|
|
505
503
|
}
|
|
@@ -557,13 +555,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
|
|
|
557
555
|
deferred_credential_endpoint = authMetadata.deferred_credential_endpoint;
|
|
558
556
|
}
|
|
559
557
|
}
|
|
560
|
-
if (authMetadata.notification_endpoint) {
|
|
561
|
-
if (notification_endpoint && authMetadata.notification_endpoint !== notification_endpoint) {
|
|
562
|
-
logger2.debug(`Credential issuer has a different notification_endpoint (${notification_endpoint}) from the Authorization Server (${authMetadata.notification_endpoint}). Will use the issuer value`);
|
|
563
|
-
} else {
|
|
564
|
-
notification_endpoint = authMetadata.notification_endpoint;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
558
|
}
|
|
568
559
|
if (!authorization_endpoint) {
|
|
569
560
|
logger2.debug(`Issuer ${issuer} does not expose authorization_endpoint, so only pre-auth will be supported`);
|
|
@@ -600,9 +591,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
|
|
|
600
591
|
},
|
|
601
592
|
...deferred_credential_endpoint && {
|
|
602
593
|
deferred_credential_endpoint
|
|
603
|
-
},
|
|
604
|
-
...notification_endpoint && {
|
|
605
|
-
notification_endpoint
|
|
606
594
|
}
|
|
607
595
|
};
|
|
608
596
|
logger2.debug(`Issuer ${issuer} token endpoint ${token_endpoint}, credential endpoint ${credential_endpoint}`);
|
|
@@ -611,7 +599,6 @@ ${JSON.stringify(credentialIssuerMetadata)}`);
|
|
|
611
599
|
token_endpoint,
|
|
612
600
|
credential_endpoint,
|
|
613
601
|
authorization_challenge_endpoint,
|
|
614
|
-
notification_endpoint,
|
|
615
602
|
authorizationServerType,
|
|
616
603
|
credentialIssuerMetadata: v15CredentialIssuerMetadata,
|
|
617
604
|
authorizationServerMetadata: authMetadata
|
|
@@ -1533,11 +1520,6 @@ var CredentialRequestClient = class {
|
|
|
1533
1520
|
});
|
|
1534
1521
|
}
|
|
1535
1522
|
response.access_token = requestToken;
|
|
1536
|
-
if (uniformRequest.credential_subject_issuance && response.successBody || response.successBody?.credential_subject_issuance) {
|
|
1537
|
-
if (JSON.stringify(uniformRequest.credential_subject_issuance) !== JSON.stringify(response.successBody?.credential_subject_issuance)) {
|
|
1538
|
-
throw Error("Subject signing was requested, but issuer did not provide the options in its response");
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
1523
|
logger5.debug(`Credential endpoint ${credentialEndpoint} response:\r
|
|
1542
1524
|
${JSON.stringify(response, null, 2)}`);
|
|
1543
1525
|
return {
|