@sphereon/ssi-sdk.siopv2-oid4vp-op-auth 0.34.1-feature.SSISDK.26.74 → 0.34.1-feature.SSISDK.26.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth",
3
- "version": "0.34.1-feature.SSISDK.26.74+130d3bc8",
3
+ "version": "0.34.1-feature.SSISDK.26.75+414583f1",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,21 +31,21 @@
31
31
  "@sphereon/oid4vc-common": "0.19.1-feature.DIIPv4.86",
32
32
  "@sphereon/pex": "5.0.0-unstable.28",
33
33
  "@sphereon/pex-models": "^2.3.2",
34
- "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.26.74+130d3bc8",
35
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.26.74+130d3bc8",
36
- "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.26.74+130d3bc8",
37
- "@sphereon/ssi-sdk.contact-manager": "0.34.1-feature.SSISDK.26.74+130d3bc8",
38
- "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.26.74+130d3bc8",
39
- "@sphereon/ssi-sdk.credential-store": "0.34.1-feature.SSISDK.26.74+130d3bc8",
40
- "@sphereon/ssi-sdk.credential-validation": "0.34.1-feature.SSISDK.26.74+130d3bc8",
41
- "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.26.74+130d3bc8",
42
- "@sphereon/ssi-sdk.issuance-branding": "0.34.1-feature.SSISDK.26.74+130d3bc8",
43
- "@sphereon/ssi-sdk.pd-manager": "0.34.1-feature.SSISDK.26.74+130d3bc8",
44
- "@sphereon/ssi-sdk.presentation-exchange": "0.34.1-feature.SSISDK.26.74+130d3bc8",
45
- "@sphereon/ssi-sdk.sd-jwt": "0.34.1-feature.SSISDK.26.74+130d3bc8",
46
- "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-feature.SSISDK.26.74+130d3bc8",
47
- "@sphereon/ssi-sdk.xstate-machine-persistence": "0.34.1-feature.SSISDK.26.74+130d3bc8",
48
- "@sphereon/ssi-types": "0.34.1-feature.SSISDK.26.74+130d3bc8",
34
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.26.75+414583f1",
35
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.26.75+414583f1",
36
+ "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.26.75+414583f1",
37
+ "@sphereon/ssi-sdk.contact-manager": "0.34.1-feature.SSISDK.26.75+414583f1",
38
+ "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.26.75+414583f1",
39
+ "@sphereon/ssi-sdk.credential-store": "0.34.1-feature.SSISDK.26.75+414583f1",
40
+ "@sphereon/ssi-sdk.credential-validation": "0.34.1-feature.SSISDK.26.75+414583f1",
41
+ "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.26.75+414583f1",
42
+ "@sphereon/ssi-sdk.issuance-branding": "0.34.1-feature.SSISDK.26.75+414583f1",
43
+ "@sphereon/ssi-sdk.pd-manager": "0.34.1-feature.SSISDK.26.75+414583f1",
44
+ "@sphereon/ssi-sdk.presentation-exchange": "0.34.1-feature.SSISDK.26.75+414583f1",
45
+ "@sphereon/ssi-sdk.sd-jwt": "0.34.1-feature.SSISDK.26.75+414583f1",
46
+ "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-feature.SSISDK.26.75+414583f1",
47
+ "@sphereon/ssi-sdk.xstate-machine-persistence": "0.34.1-feature.SSISDK.26.75+414583f1",
48
+ "@sphereon/ssi-types": "0.34.1-feature.SSISDK.26.75+414583f1",
49
49
  "@sphereon/wellknown-dids-client": "^0.1.3",
50
50
  "@veramo/core": "4.2.0",
51
51
  "@veramo/credential-w3c": "4.2.0",
@@ -59,8 +59,8 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@sphereon/did-uni-client": "^0.6.3",
62
- "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.34.1-feature.SSISDK.26.74+130d3bc8",
63
- "@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.26.74+130d3bc8",
62
+ "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.34.1-feature.SSISDK.26.75+414583f1",
63
+ "@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.26.75+414583f1",
64
64
  "@types/i18n-js": "^3.8.9",
65
65
  "@types/lodash.memoize": "^4.1.9",
66
66
  "@types/sha.js": "^2.4.4",
@@ -102,5 +102,5 @@
102
102
  "OpenID Connect",
103
103
  "Authenticator"
104
104
  ],
105
- "gitHead": "130d3bc8f273240e64c2c2ad2a1623087430b89d"
105
+ "gitHead": "414583f1b1ed3f44a7b125c6a4f816c573aefacd"
106
106
  }
@@ -1,7 +1,4 @@
1
- import {
2
- decodeUriAsJson,
3
- PresentationSignCallback,
4
- VerifiedAuthorizationRequest } from '@sphereon/did-auth-siop'
1
+ import { decodeUriAsJson, PresentationSignCallback, VerifiedAuthorizationRequest } from '@sphereon/did-auth-siop'
5
2
  import {
6
3
  ConnectionType,
7
4
  CorrelationIdentifierType,
@@ -13,12 +10,20 @@ import {
13
10
  } from '@sphereon/ssi-sdk.data-store'
14
11
  import { HasherSync, Loggers } from '@sphereon/ssi-types'
15
12
  import { IAgentPlugin } from '@veramo/core'
13
+ import { EventEmitter } from 'events'
16
14
  import { v4 as uuidv4 } from 'uuid'
15
+ import { schema } from '..'
16
+ import { Siopv2Machine } from '../machine/Siopv2Machine'
17
+ import { getSelectableCredentials, siopSendAuthorizationResponse, translateCorrelationIdToName } from '../services/Siopv2MachineService'
18
+
17
19
  import { OpSession } from '../session'
18
- import { EventEmitter } from 'events'
19
20
  import {
21
+ AddIdentityArgs,
22
+ CreateConfigArgs,
23
+ CreateConfigResult,
20
24
  DidAuthSiopOpAuthenticatorOptions,
21
25
  GetSelectableCredentialsArgs,
26
+ GetSiopRequestArgs,
22
27
  IDidAuthSiopOpAuthenticator,
23
28
  IGetSiopSessionArgs,
24
29
  IOpSessionArgs,
@@ -27,27 +32,18 @@ import {
27
32
  IRemoveSiopSessionArgs,
28
33
  IRequiredContext,
29
34
  LOGGER_NAMESPACE,
30
- RequiredContext,
31
- SelectableCredentialsMap,
32
- Siopv2AuthorizationResponseData,
33
- } from '../types'
34
- import {
35
- AddIdentityArgs,
36
- CreateConfigArgs,
37
- CreateConfigResult,
38
- GetSiopRequestArgs,
39
35
  OnContactIdentityCreatedArgs,
40
36
  OnIdentifierCreatedArgs,
37
+ RequiredContext,
41
38
  RetrieveContactArgs,
39
+ SelectableCredentialsMap,
42
40
  SendResponseArgs,
43
41
  Siopv2AuthorizationRequestData,
42
+ Siopv2AuthorizationResponseData,
44
43
  Siopv2HolderEvent,
45
44
  Siopv2Machine as Siopv2MachineId,
46
45
  Siopv2MachineInstanceOpts,
47
46
  } from '../types'
48
- import { Siopv2Machine } from '../machine/Siopv2Machine'
49
- import { getSelectableCredentials, siopSendAuthorizationResponse, translateCorrelationIdToName } from '../services/Siopv2MachineService'
50
- import { schema } from '..'
51
47
 
52
48
  const logger = Loggers.DEFAULT.options(LOGGER_NAMESPACE, {}).get(LOGGER_NAMESPACE)
53
49
 
@@ -92,13 +88,7 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin {
92
88
  private readonly hasher?: HasherSync
93
89
 
94
90
  constructor(options?: DidAuthSiopOpAuthenticatorOptions) {
95
- const {
96
- onContactIdentityCreated,
97
- onIdentifierCreated,
98
- hasher,
99
- customApprovals = {},
100
- presentationSignCallback
101
- } = { ...options }
91
+ const { onContactIdentityCreated, onIdentifierCreated, hasher, customApprovals = {}, presentationSignCallback } = { ...options }
102
92
 
103
93
  this.hasher = hasher
104
94
  this.onContactIdentityCreated = onContactIdentityCreated