@bedrock/vc-delivery 7.13.2 → 7.13.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/lib/oid4/oid4vp.js +6 -1
- package/package.json +2 -2
package/lib/oid4/oid4vp.js
CHANGED
|
@@ -191,7 +191,12 @@ export async function processAuthorizationResponse({req, clientProfileId}) {
|
|
|
191
191
|
}) {
|
|
192
192
|
const {authorizationRequest} = result;
|
|
193
193
|
verifyPresentationOptions.challenge = authorizationRequest.nonce;
|
|
194
|
-
|
|
194
|
+
const usesRedirectUri = oid4vp.authzRequest.usesClientIdScheme({
|
|
195
|
+
authorizationRequest, scheme: 'redirect_uri'
|
|
196
|
+
});
|
|
197
|
+
verifyPresentationOptions.domain = usesRedirectUri ?
|
|
198
|
+
authorizationRequest.client_id : authorizationRequest.response_uri;
|
|
199
|
+
expectedDomain = verifyPresentationOptions.domain;
|
|
195
200
|
|
|
196
201
|
const {envelope} = parseResponseResult;
|
|
197
202
|
if(envelope?.mediaType === 'application/mdl-vp-token') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock/vc-delivery",
|
|
3
|
-
"version": "7.13.
|
|
3
|
+
"version": "7.13.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bedrock Verifiable Credential Delivery",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@digitalbazaar/ed25519-signature-2020": "^5.4.0",
|
|
41
41
|
"@digitalbazaar/ezcap": "^4.1.0",
|
|
42
42
|
"@digitalbazaar/http-client": "^4.2.0",
|
|
43
|
-
"@digitalbazaar/oid4-client": "^5.9.
|
|
43
|
+
"@digitalbazaar/oid4-client": "^5.9.1",
|
|
44
44
|
"@digitalbazaar/vc": "^7.2.0",
|
|
45
45
|
"@digitalbazaar/webkms-client": "^14.2.0",
|
|
46
46
|
"assert-plus": "^1.0.0",
|