Skip to content

Commit

Permalink
feat: Callback listeeners
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jun 27, 2024
1 parent 69ee2ce commit fce3670
Show file tree
Hide file tree
Showing 43 changed files with 1,612 additions and 1,376 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
"@veramo/url-handler": "4.2.0",
"@sphereon/ssi-types": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/oid4vci-common": "0.12.1-next.4",
"@sphereon/oid4vci-client": "0.12.1-next.4",
"@sphereon/oid4vci-issuer": "0.12.1-next.4",
"@sphereon/oid4vci-common": "0.12.1-next.5",
"@sphereon/oid4vci-client": "0.12.1-next.5",
"@sphereon/oid4vci-issuer": "0.12.1-next.5",
"@noble/hashes": "1.2.0",
"did-jwt": "6.11.6",
"did-jwt-vc": "3.1.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/contact-manager-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"dependencies": {
"@sphereon/ssi-express-support": "workspace:*",
"@sphereon/ssi-sdk-ext.key-manager": "0.21.1-next.5",
"@sphereon/ssi-sdk-ext.key-utils": "0.21.1-next.5",
"@sphereon/ssi-sdk-ext.key-manager": "0.21.1-next.8",
"@sphereon/ssi-sdk-ext.key-utils": "0.21.1-next.8",
"@sphereon/ssi-sdk.contact-manager": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.data-store": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/data-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@sphereon/pex": "^3.3.3",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-types": "workspace:*",
"@sphereon/ssi-sdk-ext.did-utils": "^0.21.0",
"@veramo/core": "4.2.0",
"@veramo/utils": "4.2.0",
"blakejs": "^1.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/data-store/src/types/contact/contact.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { IIdentifierOpts } from '@sphereon/ssi-sdk-ext.did-utils'
import { IIdentifier } from '@veramo/core'

export type MetadataTypes = string | number | Date | boolean | undefined
Expand Down Expand Up @@ -126,7 +127,7 @@ export type PartialOpenIdConfig = Partial<OpenIdConfig>

export type DidAuthConfig = {
id: string
identifier: IIdentifier
idOpts: IIdentifierOpts
stateId: string
ownerId?: string
tenantId?: string
Expand Down
4 changes: 2 additions & 2 deletions packages/data-store/src/utils/contact/MappingUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const correlationIdentifierFrom = (identifier: CorrelationIdentifierEntit

export const didAuthConfigEntityFrom = (config: NonPersistedDidAuthConfig): DidAuthConfigEntity => {
const didAuthConfig: DidAuthConfigEntity = new DidAuthConfigEntity()
didAuthConfig.identifier = config.identifier.did
didAuthConfig.identifier = typeof config.idOpts.identifier === 'string' ? config.idOpts.identifier : config.idOpts.identifier.did
didAuthConfig.redirectUrl = config.redirectUrl
didAuthConfig.sessionId = config.sessionId
didAuthConfig.ownerId = config.ownerId
Expand Down Expand Up @@ -479,7 +479,7 @@ export const openIdConfigFrom = (config: OpenIdConfigEntity): OpenIdConfig => {
export const didAuthConfigFrom = (config: DidAuthConfigEntity): DidAuthConfig => {
return {
id: config.id,
identifier: { did: config.identifier, provider: '', keys: [], services: [] },
idOpts: { identifier: config.identifier },
stateId: '', // FIXME
redirectUrl: config.redirectUrl,
sessionId: config.sessionId,
Expand Down
Loading

0 comments on commit fce3670

Please sign in to comment.