@sphereon/ssi-sdk.oid4vci-holder 0.32.1-feature.SPRIND.89.42 → 0.32.1-feature.SPRIND.89.43
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirstPartyMachineServices.d.ts","sourceRoot":"","sources":["../../src/services/FirstPartyMachineServices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;
|
|
1
|
+
{"version":3,"file":"FirstPartyMachineServices.d.ts","sourceRoot":"","sources":["../../src/services/FirstPartyMachineServices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,qCAAqC,EACrC,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,iCAAiC,SAAgB,qCAAqC,KAAG,OAAO,CAAC,kCAAkC,CAS/I,CAAA;AAED,eAAO,MAAM,YAAY,SAAgB,gBAAgB,WAAW,eAAe,KAAG,OAAO,CAAC,kBAAkB,CAQ/G,CAAC;AAEF,eAAO,MAAM,cAAc,SAAgB,kBAAkB,WAAW,eAAe,KAAG,OAAO,CAAC,8BAA8B,CAY/H,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAgB,6BAA6B,WAAW,eAAe,KAAG,OAAO,CAAC,MAAM,CAW7H,CAAA"}
|
|
@@ -11,10 +11,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.sendAuthorizationResponse = exports.getSiopRequest = exports.createConfig = exports.sendAuthorizationChallengeRequest = void 0;
|
|
13
13
|
const oid4vci_client_1 = require("@sphereon/oid4vci-client");
|
|
14
|
+
const uuid_1 = require("uuid");
|
|
14
15
|
const sendAuthorizationChallengeRequest = (args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
+
var _a;
|
|
15
17
|
const { openID4VCIClientState, authSession, presentationDuringIssuanceSession } = args;
|
|
16
18
|
const oid4vciClient = yield oid4vci_client_1.OpenID4VCIClient.fromState({ state: openID4VCIClientState });
|
|
17
|
-
return oid4vciClient.acquireAuthorizationChallengeCode(Object.assign(Object.assign({ clientId: oid4vciClient.clientId }, (authSession && { authSession })), (presentationDuringIssuanceSession && { presentationDuringIssuanceSession })));
|
|
19
|
+
return oid4vciClient.acquireAuthorizationChallengeCode(Object.assign(Object.assign({ clientId: (_a = oid4vciClient.clientId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)() }, (authSession && { authSession })), (presentationDuringIssuanceSession && { presentationDuringIssuanceSession })));
|
|
18
20
|
});
|
|
19
21
|
exports.sendAuthorizationChallengeRequest = sendAuthorizationChallengeRequest;
|
|
20
22
|
const createConfig = (args, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirstPartyMachineServices.js","sourceRoot":"","sources":["../../src/services/FirstPartyMachineServices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2D;
|
|
1
|
+
{"version":3,"file":"FirstPartyMachineServices.js","sourceRoot":"","sources":["../../src/services/FirstPartyMachineServices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2D;AAI3D,+BAAmC;AAU5B,MAAM,iCAAiC,GAAG,CAAO,IAA2C,EAA+C,EAAE;;IAClJ,MAAM,EAAE,qBAAqB,EAAE,WAAW,EAAE,iCAAiC,EAAE,GAAG,IAAI,CAAA;IAEtF,MAAM,aAAa,GAAG,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AAZY,QAAA,cAAc,kBAY1B;AAEM,MAAM,yBAAyB,GAAG,CAAO,IAAmC,EAAE,OAAwB,EAAmB,EAAE;IAChI,MAAM,EAAE,aAAa,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAA;IAE7E,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC;QACxD,wBAAwB;QACxB,mBAAmB;QACnB,aAAa;QACb,YAAY,EAAE,IAAI;KACnB,CAAC,CAAA;IAEF,OAAkD,YAAY,CAAC,IAAK,CAAC,oCAAoC,CAAA;AAC3G,CAAC,CAAA,CAAA;AAXY,QAAA,yBAAyB,6BAWrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.oid4vci-holder",
|
|
3
|
-
"version": "0.32.1-feature.SPRIND.89.
|
|
3
|
+
"version": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.0",
|
|
23
23
|
"@sphereon/ssi-sdk-ext.jwt-service": "0.27.0",
|
|
24
24
|
"@sphereon/ssi-sdk-ext.key-utils": "0.27.0",
|
|
25
|
-
"@sphereon/ssi-sdk.contact-manager": "0.32.1-feature.SPRIND.89.
|
|
26
|
-
"@sphereon/ssi-sdk.core": "0.32.1-feature.SPRIND.89.
|
|
27
|
-
"@sphereon/ssi-sdk.credential-store": "0.32.1-feature.SPRIND.89.
|
|
28
|
-
"@sphereon/ssi-sdk.credential-validation": "0.32.1-feature.SPRIND.89.
|
|
29
|
-
"@sphereon/ssi-sdk.data-store": "0.32.1-feature.SPRIND.89.
|
|
30
|
-
"@sphereon/ssi-sdk.issuance-branding": "0.32.1-feature.SPRIND.89.
|
|
31
|
-
"@sphereon/ssi-sdk.mdl-mdoc": "0.32.1-feature.SPRIND.89.
|
|
32
|
-
"@sphereon/ssi-sdk.oidf-client": "0.32.1-feature.SPRIND.89.
|
|
33
|
-
"@sphereon/ssi-sdk.sd-jwt": "0.32.1-feature.SPRIND.89.
|
|
34
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.32.1-feature.SPRIND.89.
|
|
35
|
-
"@sphereon/ssi-sdk.xstate-machine-persistence": "0.32.1-feature.SPRIND.89.
|
|
36
|
-
"@sphereon/ssi-types": "0.32.1-feature.SPRIND.89.
|
|
25
|
+
"@sphereon/ssi-sdk.contact-manager": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
26
|
+
"@sphereon/ssi-sdk.core": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
27
|
+
"@sphereon/ssi-sdk.credential-store": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
28
|
+
"@sphereon/ssi-sdk.credential-validation": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
29
|
+
"@sphereon/ssi-sdk.data-store": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
30
|
+
"@sphereon/ssi-sdk.issuance-branding": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
31
|
+
"@sphereon/ssi-sdk.mdl-mdoc": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
32
|
+
"@sphereon/ssi-sdk.oidf-client": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
33
|
+
"@sphereon/ssi-sdk.sd-jwt": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
34
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
35
|
+
"@sphereon/ssi-sdk.xstate-machine-persistence": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
36
|
+
"@sphereon/ssi-types": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
37
37
|
"@veramo/core": "4.2.0",
|
|
38
38
|
"@veramo/data-store": "4.2.0",
|
|
39
39
|
"@veramo/utils": "4.2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@sphereon/oid4vc-common": "0.16.1-feature.SPRIND.89.257",
|
|
49
49
|
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.27.0",
|
|
50
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.32.1-feature.SPRIND.89.
|
|
50
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.32.1-feature.SPRIND.89.43+0d31428c",
|
|
51
51
|
"@types/i18n-js": "^3.8.9",
|
|
52
52
|
"@types/lodash.memoize": "^4.1.9",
|
|
53
53
|
"@types/uuid": "^9.0.8",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"State Machine"
|
|
78
78
|
],
|
|
79
79
|
"nx": {},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "0d31428c25bf21dadd115404e6b7f6638587bc3b"
|
|
81
81
|
}
|
|
@@ -2,6 +2,7 @@ import { OpenID4VCIClient } from '@sphereon/oid4vci-client'
|
|
|
2
2
|
import { AuthorizationChallengeValidationResponse } from '@sphereon/ssi-sdk.siopv2-oid4vp-common'
|
|
3
3
|
import { AuthorizationChallengeCodeResponse } from '@sphereon/oid4vci-common'
|
|
4
4
|
import { CreateConfigResult } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth'
|
|
5
|
+
import { v4 as uuidv4 } from 'uuid'
|
|
5
6
|
import { RequiredContext } from '../types/IOID4VCIHolder'
|
|
6
7
|
import {
|
|
7
8
|
CreateConfigArgs,
|
|
@@ -16,7 +17,7 @@ export const sendAuthorizationChallengeRequest = async (args: SendAuthorizationC
|
|
|
16
17
|
|
|
17
18
|
const oid4vciClient = await OpenID4VCIClient.fromState({ state: openID4VCIClientState })
|
|
18
19
|
return oid4vciClient.acquireAuthorizationChallengeCode({
|
|
19
|
-
clientId: oid4vciClient.clientId,
|
|
20
|
+
clientId: oid4vciClient.clientId ?? uuidv4(),
|
|
20
21
|
...(authSession && { authSession }),
|
|
21
22
|
...(presentationDuringIssuanceSession && { presentationDuringIssuanceSession })
|
|
22
23
|
})
|