diff --git a/packages/agent-config/CHANGELOG.md b/packages/agent-config/CHANGELOG.md index ef877e9a0..be66ba4b3 100644 --- a/packages/agent-config/CHANGELOG.md +++ b/packages/agent-config/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.agent-config - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.agent-config diff --git a/packages/contact-manager-rest-api/CHANGELOG.md b/packages/contact-manager-rest-api/CHANGELOG.md index 5d7b51b20..e65731a54 100644 --- a/packages/contact-manager-rest-api/CHANGELOG.md +++ b/packages/contact-manager-rest-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager-rest-api - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager-rest-api diff --git a/packages/contact-manager/CHANGELOG.md b/packages/contact-manager/CHANGELOG.md index dc389e5a8..5562f5d1a 100644 --- a/packages/contact-manager/CHANGELOG.md +++ b/packages/contact-manager/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager diff --git a/packages/data-store/CHANGELOG.md b/packages/data-store/CHANGELOG.md index 392eb32a1..683ba6177 100644 --- a/packages/data-store/CHANGELOG.md +++ b/packages/data-store/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.data-store - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.data-store diff --git a/packages/dev/CHANGELOG.md b/packages/dev/CHANGELOG.md index 35f50bb39..1388bbed1 100644 --- a/packages/dev/CHANGELOG.md +++ b/packages/dev/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.dev - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.dev diff --git a/packages/issuance-branding/CHANGELOG.md b/packages/issuance-branding/CHANGELOG.md index 1f1263ea0..04809f031 100644 --- a/packages/issuance-branding/CHANGELOG.md +++ b/packages/issuance-branding/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.issuance-branding - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.issuance-branding diff --git a/packages/kv-store/CHANGELOG.md b/packages/kv-store/CHANGELOG.md index 2c706136c..b52ffbb9a 100644 --- a/packages/kv-store/CHANGELOG.md +++ b/packages/kv-store/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.kv-store-temp - - - - ## [0.17.4](https://github.com/uport-project/veramo/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.kv-store-temp diff --git a/packages/ms-authenticator/CHANGELOG.md b/packages/ms-authenticator/CHANGELOG.md index a24f51e2d..71de42a8e 100644 --- a/packages/ms-authenticator/CHANGELOG.md +++ b/packages/ms-authenticator/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.ms-authenticator - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.ms-authenticator diff --git a/packages/ms-request-api/CHANGELOG.md b/packages/ms-request-api/CHANGELOG.md index 62ba945c5..7b54a79b4 100644 --- a/packages/ms-request-api/CHANGELOG.md +++ b/packages/ms-request-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.ms-request-api - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.ms-request-api diff --git a/packages/oid4vci-issuer-rest-api/CHANGELOG.md b/packages/oid4vci-issuer-rest-api/CHANGELOG.md index 3fbd4b37b..63e1dad51 100644 --- a/packages/oid4vci-issuer-rest-api/CHANGELOG.md +++ b/packages/oid4vci-issuer-rest-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer-rest-api - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer-rest-api diff --git a/packages/oid4vci-issuer-rest-api/package.json b/packages/oid4vci-issuer-rest-api/package.json index 43cabaa15..934d14f2d 100644 --- a/packages/oid4vci-issuer-rest-api/package.json +++ b/packages/oid4vci-issuer-rest-api/package.json @@ -33,8 +33,8 @@ "devDependencies": { "@decentralized-identity/ion-sdk": "^0.6.0", "@sphereon/did-uni-client": "^0.6.0", - "@sphereon/pex": "2.1.2", - "@sphereon/pex-models": "^2.1.0", + "@sphereon/pex": "2.2.0", + "@sphereon/pex-models": "^2.1.1", "@sphereon/ssi-sdk-ext.did-provider-jwk": "0.15.0", "@sphereon/ssi-sdk-ext.key-manager": "0.15.0", "@sphereon/ssi-sdk-ext.key-utils": "0.15.0", diff --git a/packages/oid4vci-issuer-rest-client/CHANGELOG.md b/packages/oid4vci-issuer-rest-client/CHANGELOG.md index df3cddaaf..5db2966ff 100644 --- a/packages/oid4vci-issuer-rest-client/CHANGELOG.md +++ b/packages/oid4vci-issuer-rest-client/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer-rest-client - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer-rest-client diff --git a/packages/oid4vci-issuer-store/CHANGELOG.md b/packages/oid4vci-issuer-store/CHANGELOG.md index 75f04ec9b..a1b217663 100644 --- a/packages/oid4vci-issuer-store/CHANGELOG.md +++ b/packages/oid4vci-issuer-store/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer-store - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer-store diff --git a/packages/oid4vci-issuer/CHANGELOG.md b/packages/oid4vci-issuer/CHANGELOG.md index 0468aa69b..acb4b0fe5 100644 --- a/packages/oid4vci-issuer/CHANGELOG.md +++ b/packages/oid4vci-issuer/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.oid4vci-issuer diff --git a/packages/presentation-exchange/CHANGELOG.md b/packages/presentation-exchange/CHANGELOG.md index b902dd7bb..5c685a626 100644 --- a/packages/presentation-exchange/CHANGELOG.md +++ b/packages/presentation-exchange/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.presentation-exchange - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.presentation-exchange diff --git a/packages/presentation-exchange/package.json b/packages/presentation-exchange/package.json index c6bd42ab9..14aed3b0f 100644 --- a/packages/presentation-exchange/package.json +++ b/packages/presentation-exchange/package.json @@ -14,8 +14,8 @@ "build:clean": "tsc --build --clean && tsc --build" }, "dependencies": { - "@sphereon/pex": "2.1.2", - "@sphereon/pex-models": "^2.1.0", + "@sphereon/pex": "2.2.0", + "@sphereon/pex-models": "^2.1.1", "@sphereon/ssi-sdk-ext.did-utils": "0.15.0", "@sphereon/ssi-sdk.kv-store-temp": "workspace:*", "@sphereon/ssi-types": "workspace:*", diff --git a/packages/presentation-exchange/src/functions.ts b/packages/presentation-exchange/src/functions.ts index 252748b0b..b52ceea14 100644 --- a/packages/presentation-exchange/src/functions.ts +++ b/packages/presentation-exchange/src/functions.ts @@ -11,13 +11,7 @@ export async function getPresentationDefinition(pexOptions?: IPEXOptions): Promi } export async function createPEXPresentationSignCallback( - { - kid, - fetchRemoteContexts, - format, - domain, - challenge, - }: { + args: { kid: string fetchRemoteContexts?: boolean format?: Format @@ -39,15 +33,15 @@ export async function createPEXPresentationSignCallback( domain?: string challenge?: string }): Promise => { - const formatOptions = format ?? presentationDefinition.format - const proofFormat = formatOptions && (!!formatOptions.ldp || !!formatOptions.ldp_vp) ? 'lds' : 'jwt' + const formatOptions = format ?? args.format ?? presentationDefinition.format + const proofFormat = formatOptions ?? 'jwt_vp' const vp = await context.agent.createVerifiablePresentation({ presentation, - keyRef: kid, - domain, - challenge, - fetchRemoteContexts: fetchRemoteContexts !== undefined ? fetchRemoteContexts : true, + keyRef: args.kid, + domain: domain ?? args.domain, + challenge: challenge ?? args.challenge, + fetchRemoteContexts: args.fetchRemoteContexts !== undefined ? args?.fetchRemoteContexts : true, proofFormat, }) // makes sure we extract an actual JWT from the internal representation in case it is a JWT diff --git a/packages/qr-code-generator/CHANGELOG.md b/packages/qr-code-generator/CHANGELOG.md index c9873d1a7..cf6d91126 100644 --- a/packages/qr-code-generator/CHANGELOG.md +++ b/packages/qr-code-generator/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.qr-code-generator - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.qr-code-generator diff --git a/packages/siopv2-oid4vp-common/CHANGELOG.md b/packages/siopv2-oid4vp-common/CHANGELOG.md index 5549a5ac6..9d4857c30 100644 --- a/packages/siopv2-oid4vp-common/CHANGELOG.md +++ b/packages/siopv2-oid4vp-common/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-common - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-common diff --git a/packages/siopv2-oid4vp-common/package.json b/packages/siopv2-oid4vp-common/package.json index 326c0bfe1..cb2a7685c 100644 --- a/packages/siopv2-oid4vp-common/package.json +++ b/packages/siopv2-oid4vp-common/package.json @@ -12,7 +12,7 @@ "access": "public" }, "dependencies": { - "@sphereon/did-auth-siop": "0.4.2", + "@sphereon/did-auth-siop": "0.5.0-unstable.2", "@sphereon/ssi-types": "workspace:*", "uint8arrays": "3.1.1" }, diff --git a/packages/siopv2-oid4vp-op-auth/CHANGELOG.md b/packages/siopv2-oid4vp-op-auth/CHANGELOG.md index 889a3c850..39a10bb8c 100644 --- a/packages/siopv2-oid4vp-op-auth/CHANGELOG.md +++ b/packages/siopv2-oid4vp-op-auth/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-op-auth - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-op-auth diff --git a/packages/siopv2-oid4vp-op-auth/package.json b/packages/siopv2-oid4vp-op-auth/package.json index c55f9650a..5e0d74f89 100644 --- a/packages/siopv2-oid4vp-op-auth/package.json +++ b/packages/siopv2-oid4vp-op-auth/package.json @@ -14,9 +14,9 @@ "build:clean": "tsc --build --clean && tsc --build" }, "dependencies": { - "@sphereon/did-auth-siop": "0.4.2", - "@sphereon/pex": "2.1.2", - "@sphereon/pex-models": "2.1.0", + "@sphereon/did-auth-siop": "0.5.0-unstable.2", + "@sphereon/pex": "2.2.0", + "@sphereon/pex-models": "2.1.1", "@sphereon/ssi-sdk-ext.did-utils": "0.15.0", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.presentation-exchange": "workspace:*", diff --git a/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts b/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts index 260f905f5..9d8c79bb1 100644 --- a/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts +++ b/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts @@ -1,6 +1,6 @@ import { IOpSessionArgs, schema } from '../index' import { IAgentPlugin } from '@veramo/core' -import { OpSession } from '../session/OpSession' +import { OpSession } from '../session' import { v4 as uuidv4 } from 'uuid' import { @@ -19,11 +19,6 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin { siopGetOPSession: this.siopGetOPSession.bind(this), siopRegisterOPSession: this.siopRegisterOPSession.bind(this), siopRemoveOPSession: this.siopRemoveOPSession.bind(this), - /*authenticateWithSiop: this.authenticateWithSiop.bind(this), - getSiopAuthorizationRequestFromRP: this.siopGetAuthorizationRequestFromRP.bind(this), - getSiopAuthorizationRequestDetails: this.getSiopAuthorizationRequestDetails.bind(this), - verifySiopAuthorizationRequestURI: this.siopVerifyAuthorizationRequestURI.bind(this), - sendSiopAuthorizationResponse: this.sendSiopAuthorizationResponse.bind(this),*/ siopRegisterOPCustomApproval: this.siopRegisterOPCustomApproval.bind(this), siopRemoveOPCustomApproval: this.siopRemoveOPCustomApproval.bind(this), } @@ -79,53 +74,4 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin { private async siopRemoveOPCustomApproval(args: IRemoveCustomApprovalForSiopArgs, context: IRequiredContext): Promise { return delete this.customApprovals[args.key] } - /* - private async authenticateWithSiop(args: IAuthenticateWithSiopArgs, context: IRequiredContext): Promise { - return this.siopGetOPSession({ sessionId: args.sessionId }, context).then((session: OpSession) => - session.authenticateWithSiop({ - ...args, - customApprovals: this.customApprovals, - }).then(async (response: Response) => { - await context.agent.emit(events.DID_SIOP_AUTHENTICATED, response) - return response - }), - ) - } - - - private async getSiopAuthorizationRequestDetails( - args: IGetSiopAuthorizationRequestDetailsArgs, - context: IRequiredContext, - ): Promise { - const uniqueVcs: Array = await context.agent.dataStoreORMGetVerifiableCredentials(args.credentialFilter) - const verifiableCredentials: W3CVerifiableCredential[] = uniqueVcs.map( - (uniqueVc: UniqueVerifiableCredential) => uniqueVc.verifiableCredential as W3CVerifiableCredential, - ) - - return this.siopGetOPSession({ sessionId: args.sessionId }, context).then((session: OpSession) => - session.getSiopAuthorizationRequestDetails({ - ...args, - verifiableCredentials, - presentationSignCallback: this.presentationSignCallback, - }), - ) - } - - private async siopVerifyAuthorizationRequestURI( - args: IVerifySiopAuthorizationRequestUriArgs, - context: IRequiredContext, - ): Promise { - return this.siopGetOPSession({ sessionId: args.sessionId }, context).then((session: OpSession) => - session.verifyAuthorizationRequest(args), - ) - } - - private async sendSiopAuthorizationResponse(args: ISendSiopAuthorizationResponseArgs, context: IRequiredContext): Promise { - return this.siopGetOPSession({ sessionId: args.sessionId }, context).then((session: OpSession) => - session.sendSiopAuthorizationResponse(args).then(async (response: Response) => { - await context.agent.emit(events.DID_SIOP_AUTHENTICATED, response) - return response - }), - ) - }*/ } diff --git a/packages/siopv2-oid4vp-op-auth/src/session/OID4VP.ts b/packages/siopv2-oid4vp-op-auth/src/session/OID4VP.ts index 733a42ca5..4aab8e269 100644 --- a/packages/siopv2-oid4vp-op-auth/src/session/OID4VP.ts +++ b/packages/siopv2-oid4vp-op-auth/src/session/OID4VP.ts @@ -78,6 +78,12 @@ export class OID4VP { throw Error('No verifiable verifiableCredentials provided for presentation definition') } + const proofOptions: ProofOptions = { + ...opts?.proofOpts, + challenge: opts?.proofOpts?.challenge ?? this.session.nonce, + domain: opts?.proofOpts?.domain ?? (await this.session.getRedirectUri()), + } + let id: IIdentifier | undefined = opts?.identifierOpts?.identifier if (!opts?.identifierOpts?.identifier) { if (opts?.subjectIsHolder) { @@ -114,7 +120,7 @@ export class OID4VP { vcs.credentials, signCallback, { - proofOptions: opts?.proofOpts, + proofOptions, holderDID: idOpts.identifier.did, } ) diff --git a/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts b/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts index 78a515acb..7df9ec691 100644 --- a/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts +++ b/packages/siopv2-oid4vp-op-auth/src/session/OpSession.ts @@ -1,7 +1,7 @@ import { IIdentifier } from '@veramo/core' -import { RequestObjectPayload, ResolveOpts, URI, Verification, VerificationMode, VerifiedAuthorizationRequest } from '@sphereon/did-auth-siop' +import { ResolveOpts, URI, Verification, VerificationMode, VerifiedAuthorizationRequest } from '@sphereon/did-auth-siop' import { IOPOptions, IOpSessionArgs, IOpsSendSiopAuthorizationResponseArgs, IRequiredContext } from '../types/IDidAuthSiopOpAuthenticator' -import { AgentDIDResolver, getAgentDIDMethods } from '@sphereon/ssi-sdk-ext.did-utils' +import { getAgentDIDMethods, getAgentResolver } from '@sphereon/ssi-sdk-ext.did-utils' import { createOP } from './functions' import { OID4VP } from './OID4VP' import { CredentialMapper } from '@sphereon/ssi-types' @@ -69,7 +69,7 @@ export class OpSession { const payload = (await this.getAuthorizationRequest()).registrationMetadataPayload const rpMethods = ( payload?.subject_syntax_types_supported - ? Array.isArray(payload?.subject_syntax_types_supported) + ? Array.isArray(payload.subject_syntax_types_supported) ? payload.subject_syntax_types_supported : [payload.subject_syntax_types_supported] : [] @@ -100,7 +100,7 @@ export class OpSession { } public async getRedirectUri(): Promise { - return (await this.getMergedRequestPayload()).redirect_uri + return Promise.resolve(this.verifiedAuthorizationRequest!.responseURI!) } public async hasPresentationDefinitions(): Promise { @@ -112,12 +112,16 @@ export class OpSession { return await OID4VP.init(this, allDIDs ?? (await this.getSupportedDIDs())) } - private async getMergedRequestPayload(): Promise { - return await (await this.getAuthorizationRequest()).authorizationRequest.mergedPayloads() - } + /*private async getMergedRequestPayload(): Promise { + return await (await this.getAuthorizationRequest()).authorizationRequest.mergedPayloads() + }*/ public async sendAuthorizationResponse(args: IOpsSendSiopAuthorizationResponseArgs): Promise { const resolveOpts: ResolveOpts = this.options.resolveOpts ?? { - resolver: new AgentDIDResolver(this.context, { uniresolverResolution: true, localResolution: true, resolverResolution: true }), + resolver: getAgentResolver(this.context, { + uniresolverResolution: true, + localResolution: true, + resolverResolution: true, + }), } if (!resolveOpts.subjectSyntaxTypesSupported || resolveOpts.subjectSyntaxTypesSupported.length === 0) { resolveOpts.subjectSyntaxTypesSupported = await this.getSupportedDIDMethods(true) @@ -127,7 +131,7 @@ export class OpSession { resolveOpts, } - const request = this.verifiedAuthorizationRequest! + const request = await this.getAuthorizationRequest() if ( (await this.hasPresentationDefinitions()) && request.presentationDefinitions && @@ -139,23 +143,23 @@ export class OpSession { const verifiablePresentations = args.verifiablePresentations ? args.verifiablePresentations.map((vp) => CredentialMapper.storedPresentationToOriginalFormat(vp)) : [] - const op = await createOP({ opOptions: this.options, idOpts: args.responseSignerOpts, context: this.context }) + const op = await createOP({ + opOptions: { ...this.options, supportedVersions: request.versions }, + idOpts: args.responseSignerOpts, + context: this.context, + }) const responseOpts = { verification, - // ...(args.responseSignerOpts ? { signer: args.responseSignerOpts} : {}), - ...(args.verifiablePresentations - ? { - presentationExchange: { - verifiablePresentations, - }, - } - : {}), + issuer: args.responseSignerOpts?.identifier.did, + ...(args.verifiablePresentations && { + presentationExchange: { + verifiablePresentations, + }, + }), } - //fixme: Remove ignore once support is in ICredential - // @ts-ignore - const authResponse = await op.createAuthorizationResponse(await this.getAuthorizationRequest(), responseOpts) + const authResponse = await op.createAuthorizationResponse(request, responseOpts) const response = await op.submitAuthorizationResponse(authResponse) if (response.status >= 400) { diff --git a/packages/siopv2-oid4vp-op-auth/src/session/functions.ts b/packages/siopv2-oid4vp-op-auth/src/session/functions.ts index ae48af2e0..6b08b1250 100644 --- a/packages/siopv2-oid4vp-op-auth/src/session/functions.ts +++ b/packages/siopv2-oid4vp-op-auth/src/session/functions.ts @@ -1,7 +1,3 @@ -import { IIdentifierOpts, IOPOptions, IRequiredContext } from '../types/IDidAuthSiopOpAuthenticator' -import { EventEmitter } from 'events' -import { AgentDIDResolver, determineKid, getAgentDIDMethods, getKey } from '@sphereon/ssi-sdk-ext.did-utils' -import { KeyAlgo, SuppliedSigner } from '@sphereon/ssi-sdk.core' import { CheckLinkedDomain, OP, @@ -13,9 +9,13 @@ import { SupportedVersion, } from '@sphereon/did-auth-siop' import { Format } from '@sphereon/pex-models' -import { TKeyType } from '@veramo/core' -import { IVerifyCallbackArgs, IVerifyCredentialResult } from '@sphereon/wellknown-dids-client' +import { determineKid, getAgentDIDMethods, getAgentResolver, getKey } from '@sphereon/ssi-sdk-ext.did-utils' +import { KeyAlgo, SuppliedSigner } from '@sphereon/ssi-sdk.core' import { createPEXPresentationSignCallback } from '@sphereon/ssi-sdk.presentation-exchange' +import { IVerifyCallbackArgs, IVerifyCredentialResult } from '@sphereon/wellknown-dids-client' +import { TKeyType } from '@veramo/core' +import { EventEmitter } from 'events' +import { IIdentifierOpts, IOPOptions, IRequiredContext } from '../types/IDidAuthSiopOpAuthenticator' export async function createOID4VPPresentationSignCallback({ presentationSignCallback, @@ -69,13 +69,18 @@ export async function createOPBuilder({ const builder = OP.builder() .withResponseMode(opOptions.responseMode ?? ResponseMode.POST) .withSupportedVersions( - opOptions.supportedVersions ?? [SupportedVersion.SIOPv2_ID1, SupportedVersion.JWT_VC_PRESENTATION_PROFILE_v1, SupportedVersion.SIOPv2_D11] + opOptions.supportedVersions ?? [ + SupportedVersion.SIOPv2_ID1, + SupportedVersion.JWT_VC_PRESENTATION_PROFILE_v1, + SupportedVersion.SIOPv2_D11, + SupportedVersion.SIOPv2_D12_OID4VP_D18, + ] ) .withExpiresIn(opOptions.expiresIn ?? 300) .withCheckLinkedDomain(opOptions.checkLinkedDomains ?? CheckLinkedDomain.IF_PRESENT) .withCustomResolver( opOptions.resolveOpts?.resolver ?? - new AgentDIDResolver(context, { + getAgentResolver(context, { uniresolverResolution: opOptions.resolveOpts?.noUniversalResolverFallback !== true, localResolution: true, resolverResolution: true, @@ -130,31 +135,6 @@ export async function createOP({ return (await createOPBuilder({ opOptions, idOpts, context })).build() } -/* -export async function getKey( - identifier: IIdentifier, - verificationMethodSection: DIDDocumentSection = 'authentication', - context: IRequiredContext, - keyId?: string -): Promise { - const keys = await mapIdentifierKeysToDocWithJwkSupport(identifier, verificationMethodSection, context) - if (!keys || keys.length === 0) { - throw new Error(`No keys found for verificationMethodSection: ${verificationMethodSection} and did ${identifier.did}`) - } - - const identifierKey = keyId ? keys.find((key: _ExtendedIKey) => key.kid === keyId || key.meta.verificationMethod.id === keyId) : keys[0] - if (!identifierKey) { - throw new Error(`No matching verificationMethodSection key found for keyId: ${keyId}`) - } - - return identifierKey -} - -export function determineKid(key: IKey, idOpts: IIdentifierOpts): string { - return key.meta?.verificationMethod.id ?? idOpts.kid ?? key.kid -} -*/ - export function getSigningAlgo(type: TKeyType): SigningAlgo { switch (type) { case 'Ed25519': diff --git a/packages/siopv2-oid4vp-rp-auth/CHANGELOG.md b/packages/siopv2-oid4vp-rp-auth/CHANGELOG.md index 26b91369f..e16203b30 100644 --- a/packages/siopv2-oid4vp-rp-auth/CHANGELOG.md +++ b/packages/siopv2-oid4vp-rp-auth/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-rp-auth - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-rp-auth diff --git a/packages/siopv2-oid4vp-rp-auth/package.json b/packages/siopv2-oid4vp-rp-auth/package.json index 083ea0a97..88df8f36b 100644 --- a/packages/siopv2-oid4vp-rp-auth/package.json +++ b/packages/siopv2-oid4vp-rp-auth/package.json @@ -14,8 +14,8 @@ "build:clean": "tsc --build --clean && tsc --build" }, "dependencies": { - "@sphereon/did-auth-siop": "0.4.2", - "@sphereon/pex": "2.1.2", + "@sphereon/did-auth-siop": "0.5.0-unstable.2", + "@sphereon/pex": "2.2.0", "@sphereon/ssi-sdk-ext.did-utils": "0.15.0", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.kv-store-temp": "workspace:*", diff --git a/packages/siopv2-oid4vp-rp-auth/src/RPInstance.ts b/packages/siopv2-oid4vp-rp-auth/src/RPInstance.ts index aef42700d..026b07f06 100644 --- a/packages/siopv2-oid4vp-rp-auth/src/RPInstance.ts +++ b/packages/siopv2-oid4vp-rp-auth/src/RPInstance.ts @@ -1,91 +1,93 @@ -import { AuthorizationRequest, RP, URI } from '@sphereon/did-auth-siop' -import { ICreateAuthRequestArgs, IPEXOptions, IRequiredContext, IRPOptions } from './types/ISIOPv2RP' -import { IPresentationDefinition } from '@sphereon/pex' -import { createRPBuilder, getRequestVersion } from './functions' -import { v4 as uuidv4 } from 'uuid' +import {AuthorizationRequest, RP, URI} from '@sphereon/did-auth-siop' +import {ICreateAuthRequestArgs, IPEXOptions, IRequiredContext, IRPOptions} from './types/ISIOPv2RP' +import {IPresentationDefinition} from '@sphereon/pex' +import {createRPBuilder, getRequestVersion} from './functions' +import {v4 as uuidv4} from 'uuid' export class RPInstance { - private _rp: RP | undefined - private readonly _pexOptions: IPEXOptions | undefined - private readonly _rpOptions: IRPOptions + private _rp: RP | undefined + private readonly _pexOptions: IPEXOptions | undefined + private readonly _rpOptions: IRPOptions - public constructor({ rpOpts, pexOpts }: { rpOpts: IRPOptions; pexOpts?: IPEXOptions }) { - this._rpOptions = rpOpts - this._pexOptions = pexOpts - } + public constructor({rpOpts, pexOpts}: { rpOpts: IRPOptions; pexOpts?: IPEXOptions }) { + this._rpOptions = rpOpts + this._pexOptions = pexOpts + } - public async get(context: IRequiredContext): Promise { - if (!this._rp) { - const builder = await createRPBuilder({ - rpOpts: this._rpOptions, - pexOpts: this._pexOptions, - context, - }) - this._rp = builder.build() + public async get(context: IRequiredContext): Promise { + if (!this._rp) { + const builder = await createRPBuilder({ + rpOpts: this._rpOptions, + pexOpts: this._pexOptions, + context, + }) + this._rp = builder.build() + } + return this._rp! } - return this._rp! - } - get rpOptions() { - return this._rpOptions - } + get rpOptions() { + return this._rpOptions + } - get pexOptions() { - return this._pexOptions - } + get pexOptions() { + return this._pexOptions + } - public hasDefinition(): boolean { - return this.definitionId !== undefined - } + public hasDefinition(): boolean { + return this.definitionId !== undefined + } - get definitionId(): string | undefined { - return this.pexOptions?.definitionId - } + get definitionId(): string | undefined { + return this.pexOptions?.definitionId + } - public async getPresentationDefinition(context: IRequiredContext): Promise { - return this.definitionId - ? await context.agent.pexStoreGetDefinition({ - definitionId: this.definitionId, - storeId: this.pexOptions?.storeId, - namespace: this.pexOptions?.storeNamespace, - }) - : undefined - } + public async getPresentationDefinition(context: IRequiredContext): Promise { + return this.definitionId + ? await context.agent.pexStoreGetDefinition({ + definitionId: this.definitionId, + storeId: this.pexOptions?.storeId, + namespace: this.pexOptions?.storeNamespace, + }) + : undefined + } - public async createAuthorizationRequestURI(createArgs: Omit, context: IRequiredContext): Promise { - const { correlationId, claims, requestByReferenceURI, redirectURI } = createArgs - const nonce = createArgs.nonce ?? uuidv4() - const state = createArgs.state ?? correlationId - return await this.get(context).then((rp) => - rp.createAuthorizationRequestURI({ - version: getRequestVersion(this.rpOptions), - correlationId, - nonce, - state, - claims, - requestByReferenceURI, - redirectURI, - }) - ) - } + public async createAuthorizationRequestURI(createArgs: Omit, context: IRequiredContext): Promise { + const {correlationId, claims, requestByReferenceURI, responseURI, responseURIType} = createArgs + const nonce = createArgs.nonce ?? uuidv4() + const state = createArgs.state ?? correlationId + return await this.get(context).then((rp) => + rp.createAuthorizationRequestURI({ + version: getRequestVersion(this.rpOptions), + correlationId, + nonce, + state, + claims, + requestByReferenceURI, + responseURI, + responseURIType + }) + ) + } - public async createAuthorizationRequest( - createArgs: Omit, - context: IRequiredContext - ): Promise { - const { correlationId, claims, requestByReferenceURI, redirectURI } = createArgs - const nonce = createArgs.nonce ?? uuidv4() - const state = createArgs.state ?? correlationId - return await this.get(context).then((rp) => - rp.createAuthorizationRequest({ - version: getRequestVersion(this.rpOptions), - correlationId, - nonce, - state, - claims, - requestByReferenceURI, - redirectURI, - }) - ) - } + public async createAuthorizationRequest( + createArgs: Omit, + context: IRequiredContext + ): Promise { + const {correlationId, claims, requestByReferenceURI, responseURI, responseURIType} = createArgs + const nonce = createArgs.nonce ?? uuidv4() + const state = createArgs.state ?? correlationId + return await this.get(context).then((rp) => + rp.createAuthorizationRequest({ + version: getRequestVersion(this.rpOptions), + correlationId, + nonce, + state, + claims, + requestByReferenceURI, + responseURIType, + responseURI, + }) + ) + } } diff --git a/packages/siopv2-oid4vp-rp-auth/src/types/ISIOPv2RP.ts b/packages/siopv2-oid4vp-rp-auth/src/types/ISIOPv2RP.ts index b0e6e4916..6d6e0561d 100644 --- a/packages/siopv2-oid4vp-rp-auth/src/types/ISIOPv2RP.ts +++ b/packages/siopv2-oid4vp-rp-auth/src/types/ISIOPv2RP.ts @@ -20,7 +20,7 @@ import { PresentationDefinitionWithLocation, PresentationVerificationCallback, RequestObjectPayload, - ResponseMode, + ResponseMode, ResponseURIType, SupportedVersion, VerifiablePresentationTypeFormat, VerifiedAuthorizationResponse, @@ -65,7 +65,8 @@ export interface IRPDefaultOpts extends IRPOptions {} export interface ICreateAuthRequestArgs { definitionId: string correlationId: string - redirectURI: string + responseURIType: ResponseURIType + responseURI: string requestByReferenceURI?: string nonce?: string state?: string diff --git a/packages/siopv2-oid4vp-rp-rest-api/CHANGELOG.md b/packages/siopv2-oid4vp-rp-rest-api/CHANGELOG.md index d146e4e35..8ed97c110 100644 --- a/packages/siopv2-oid4vp-rp-rest-api/CHANGELOG.md +++ b/packages/siopv2-oid4vp-rp-rest-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-api - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-api diff --git a/packages/siopv2-oid4vp-rp-rest-api/package.json b/packages/siopv2-oid4vp-rp-rest-api/package.json index 2e455bb60..0d0461b3c 100644 --- a/packages/siopv2-oid4vp-rp-rest-api/package.json +++ b/packages/siopv2-oid4vp-rp-rest-api/package.json @@ -11,7 +11,7 @@ "start:dev": "ts-node __tests__/RestAPI.ts" }, "dependencies": { - "@sphereon/did-auth-siop": "0.4.2", + "@sphereon/did-auth-siop": "0.5.0-unstable.2", "@sphereon/ssi-express-support": "workspace:*", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.kv-store-temp": "workspace:*", @@ -33,8 +33,8 @@ "devDependencies": { "@decentralized-identity/ion-sdk": "^0.6.0", "@sphereon/did-uni-client": "^0.6.0", - "@sphereon/pex": "2.1.2", - "@sphereon/pex-models": "^2.1.0", + "@sphereon/pex": "2.2.0", + "@sphereon/pex-models": "^2.1.1", "@sphereon/ssi-sdk-ext.did-provider-jwk": "0.15.0", "@sphereon/ssi-sdk.data-store": "workspace:*", "@sphereon/ssi-sdk.vc-handler-ld-local": "workspace:*", diff --git a/packages/siopv2-oid4vp-rp-rest-api/src/webapp-api-functions.ts b/packages/siopv2-oid4vp-rp-rest-api/src/webapp-api-functions.ts index 791f17705..08f8170a6 100644 --- a/packages/siopv2-oid4vp-rp-rest-api/src/webapp-api-functions.ts +++ b/packages/siopv2-oid4vp-rp-rest-api/src/webapp-api-functions.ts @@ -27,14 +27,15 @@ export function createAuthRequestWebappEndpoint(router: Router, context: IRequir const requestByReferenceURI = uriWithBase(`/siop/definitions/${definitionId}/auth-requests/${correlationId}`, { baseURI: opts?.siopBaseURI, }) - const redirectURI = uriWithBase(`/siop/definitions/${definitionId}/auth-responses/${correlationId}`, { baseURI: opts?.siopBaseURI }) + const responseURI = uriWithBase(`/siop/definitions/${definitionId}/auth-responses/${correlationId}`, { baseURI: opts?.siopBaseURI }) const authRequestURI = await context.agent.siopCreateAuthRequestURI({ definitionId, correlationId, state, requestByReferenceURI, - redirectURI, + responseURIType: 'redirect_uri', + responseURI, }) const authRequestBody: GenerateAuthRequestURIResponse = { correlationId, diff --git a/packages/siopv2-oid4vp-rp-rest-client/CHANGELOG.md b/packages/siopv2-oid4vp-rp-rest-client/CHANGELOG.md index 55e5c2938..1f62c98d4 100644 --- a/packages/siopv2-oid4vp-rp-rest-client/CHANGELOG.md +++ b/packages/siopv2-oid4vp-rp-rest-client/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-client - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-client diff --git a/packages/ssi-express-support/CHANGELOG.md b/packages/ssi-express-support/CHANGELOG.md index ee8c02710..08a4d0c8e 100644 --- a/packages/ssi-express-support/CHANGELOG.md +++ b/packages/ssi-express-support/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-express-support - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-express-support diff --git a/packages/ssi-sdk-core/CHANGELOG.md b/packages/ssi-sdk-core/CHANGELOG.md index d84bcc76b..e11f96d0d 100644 --- a/packages/ssi-sdk-core/CHANGELOG.md +++ b/packages/ssi-sdk-core/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.core - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.core diff --git a/packages/ssi-types/CHANGELOG.md b/packages/ssi-types/CHANGELOG.md index 0b5d1f57e..dab383986 100644 --- a/packages/ssi-types/CHANGELOG.md +++ b/packages/ssi-types/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-types - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-types diff --git a/packages/uni-resolver-registrar-api/CHANGELOG.md b/packages/uni-resolver-registrar-api/CHANGELOG.md index 6dc8df798..3c96b7e79 100644 --- a/packages/uni-resolver-registrar-api/CHANGELOG.md +++ b/packages/uni-resolver-registrar-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.uni-resolver-registrar-api - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.uni-resolver-registrar-api diff --git a/packages/vc-handler-ld-local/CHANGELOG.md b/packages/vc-handler-ld-local/CHANGELOG.md index f454aebc4..4e6534f2f 100644 --- a/packages/vc-handler-ld-local/CHANGELOG.md +++ b/packages/vc-handler-ld-local/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.vc-handler-ld-local - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.vc-handler-ld-local diff --git a/packages/vc-handler-ld-local/src/ld-document-loader.ts b/packages/vc-handler-ld-local/src/ld-document-loader.ts index 7f63c3f66..ea606a1b3 100644 --- a/packages/vc-handler-ld-local/src/ld-document-loader.ts +++ b/packages/vc-handler-ld-local/src/ld-document-loader.ts @@ -63,6 +63,7 @@ export class LdDocumentLoader { } // did resolution if (url.toLowerCase().startsWith('did:')) { + // const parsedDID = parseDid(url) const resolutionResult = await getAgentResolver(context, { localResolution: this.localResolution, resolverResolution: this.resolverResolution, diff --git a/packages/vc-status-list-issuer-drivers/CHANGELOG.md b/packages/vc-status-list-issuer-drivers/CHANGELOG.md index 11695b307..779dc0891 100644 --- a/packages/vc-status-list-issuer-drivers/CHANGELOG.md +++ b/packages/vc-status-list-issuer-drivers/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.vc-status-list-issuer-drivers - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.vc-status-list-issuer-drivers diff --git a/packages/vc-status-list-issuer-rest-api/CHANGELOG.md b/packages/vc-status-list-issuer-rest-api/CHANGELOG.md index c74725a4e..3d2353f40 100644 --- a/packages/vc-status-list-issuer-rest-api/CHANGELOG.md +++ b/packages/vc-status-list-issuer-rest-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.vc-status-list-issuer-rest-api - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.vc-status-list-issuer-rest-api diff --git a/packages/vc-status-list/CHANGELOG.md b/packages/vc-status-list/CHANGELOG.md index 97acb7d7f..2adcb5790 100644 --- a/packages/vc-status-list/CHANGELOG.md +++ b/packages/vc-status-list/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.vc-status-list - - - - ## [0.17.4](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.vc-status-list diff --git a/packages/w3c-vc-api-issuer-rest-client/CHANGELOG.md b/packages/w3c-vc-api-issuer-rest-client/CHANGELOG.md index 0e2b114b1..42d99ce1f 100644 --- a/packages/w3c-vc-api-issuer-rest-client/CHANGELOG.md +++ b/packages/w3c-vc-api-issuer-rest-client/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.w3c-vc-api-issuer-rest-client - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.w3c-vc-api-issuer-rest-client diff --git a/packages/w3c-vc-api-verifier-rest-client/CHANGELOG.md b/packages/w3c-vc-api-verifier-rest-client/CHANGELOG.md index ef7588592..eb865e3ac 100644 --- a/packages/w3c-vc-api-verifier-rest-client/CHANGELOG.md +++ b/packages/w3c-vc-api-verifier-rest-client/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.w3c-vc-api-verifier-rest-client - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.w3c-vc-api-verifier-rest-client diff --git a/packages/w3c-vc-api/CHANGELOG.md b/packages/w3c-vc-api/CHANGELOG.md index 7fc2fcc6b..77a0b2cd0 100644 --- a/packages/w3c-vc-api/CHANGELOG.md +++ b/packages/w3c-vc-api/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.w3c-vc-api - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.w3c-vc-api diff --git a/packages/w3c-vc-api/package.json b/packages/w3c-vc-api/package.json index 04be7f8f9..122a4c93a 100644 --- a/packages/w3c-vc-api/package.json +++ b/packages/w3c-vc-api/package.json @@ -11,7 +11,7 @@ "start:dev": "ts-node __tests__/agent.ts" }, "dependencies": { - "@sphereon/did-auth-siop": "0.4.2", + "@sphereon/did-auth-siop": "0.5.0-unstable.2", "@sphereon/ssi-express-support": "workspace:*", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.kv-store-temp": "workspace:*", diff --git a/packages/web3-provider-headless/CHANGELOG.md b/packages/web3-provider-headless/CHANGELOG.md index 2dff6b82c..3b47260c4 100644 --- a/packages/web3-provider-headless/CHANGELOG.md +++ b/packages/web3-provider-headless/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk-web3.headless-provider - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk-web3.headless-provider diff --git a/packages/wellknown-did-issuer/CHANGELOG.md b/packages/wellknown-did-issuer/CHANGELOG.md index e0e8d524d..c4c6af203 100644 --- a/packages/wellknown-did-issuer/CHANGELOG.md +++ b/packages/wellknown-did-issuer/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.wellknown-did-issuer - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.wellknown-did-issuer diff --git a/packages/wellknown-did-verifier/CHANGELOG.md b/packages/wellknown-did-verifier/CHANGELOG.md index e0a4a4324..c2147f554 100644 --- a/packages/wellknown-did-verifier/CHANGELOG.md +++ b/packages/wellknown-did-verifier/CHANGELOG.md @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @sphereon/ssi-sdk.wellknown-did-verifier - - - - ## [0.17.4](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.17.3...v0.17.4) (2023-10-01) **Note:** Version bump only for package @sphereon/ssi-sdk.wellknown-did-verifier diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c2526e90..1788460f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -741,11 +741,11 @@ importers: specifier: ^0.6.0 version: 0.6.0 '@sphereon/pex': - specifier: 2.1.2 - version: 2.1.2 + specifier: 2.2.0 + version: 2.2.0 '@sphereon/pex-models': - specifier: ^2.1.0 - version: 2.1.0 + specifier: ^2.1.1 + version: 2.1.1 '@sphereon/ssi-sdk-ext.did-provider-jwk': specifier: 0.15.0 version: 0.15.0(expo-crypto@12.6.0)(expo@49.0.13)(msrcrypto@1.5.8)(react-native-securerandom@1.0.1) @@ -920,11 +920,11 @@ importers: packages/presentation-exchange: dependencies: '@sphereon/pex': - specifier: 2.1.2 - version: 2.1.2 + specifier: 2.2.0 + version: 2.2.0 '@sphereon/pex-models': - specifier: ^2.1.0 - version: 2.1.0 + specifier: ^2.1.1 + version: 2.1.1 '@sphereon/ssi-sdk-ext.did-utils': specifier: 0.15.0 version: 0.15.0(expo-crypto@12.6.0)(expo@49.0.13)(msrcrypto@1.5.8)(react-native-securerandom@1.0.1) @@ -1027,8 +1027,8 @@ importers: packages/siopv2-oid4vp-common: dependencies: '@sphereon/did-auth-siop': - specifier: 0.4.2 - version: 0.4.2 + specifier: 0.5.0-unstable.2 + version: 0.5.0-unstable.2 '@sphereon/ssi-types': specifier: workspace:* version: link:../ssi-types @@ -1043,14 +1043,14 @@ importers: packages/siopv2-oid4vp-op-auth: dependencies: '@sphereon/did-auth-siop': - specifier: 0.4.2 - version: 0.4.2 + specifier: 0.5.0-unstable.2 + version: 0.5.0-unstable.2 '@sphereon/pex': - specifier: 2.1.2 - version: 2.1.2 + specifier: 2.2.0 + version: 2.2.0 '@sphereon/pex-models': - specifier: 2.1.0 - version: 2.1.0 + specifier: 2.1.1 + version: 2.1.1 '@sphereon/ssi-sdk-ext.did-utils': specifier: 0.15.0 version: 0.15.0(expo-crypto@12.6.0)(expo@49.0.13)(msrcrypto@1.5.8)(react-native-securerandom@1.0.1) @@ -1116,11 +1116,11 @@ importers: packages/siopv2-oid4vp-rp-auth: dependencies: '@sphereon/did-auth-siop': - specifier: 0.4.2 - version: 0.4.2 + specifier: 0.5.0-unstable.2 + version: 0.5.0-unstable.2 '@sphereon/pex': - specifier: 2.1.2 - version: 2.1.2 + specifier: 2.2.0 + version: 2.2.0 '@sphereon/ssi-sdk-ext.did-utils': specifier: 0.15.0 version: 0.15.0(expo-crypto@12.6.0)(expo@49.0.13)(msrcrypto@1.5.8)(react-native-securerandom@1.0.1) @@ -1180,8 +1180,8 @@ importers: packages/siopv2-oid4vp-rp-rest-api: dependencies: '@sphereon/did-auth-siop': - specifier: 0.4.2 - version: 0.4.2 + specifier: 0.5.0-unstable.2 + version: 0.5.0-unstable.2 '@sphereon/ssi-express-support': specifier: workspace:* version: link:../ssi-express-support @@ -1241,11 +1241,11 @@ importers: specifier: ^0.6.0 version: 0.6.0 '@sphereon/pex': - specifier: 2.1.2 - version: 2.1.2 + specifier: 2.2.0 + version: 2.2.0 '@sphereon/pex-models': - specifier: ^2.1.0 - version: 2.1.0 + specifier: ^2.1.1 + version: 2.1.1 '@sphereon/ssi-sdk-ext.did-provider-jwk': specifier: 0.15.0 version: 0.15.0(expo-crypto@12.6.0)(expo@49.0.13)(msrcrypto@1.5.8)(react-native-securerandom@1.0.1) @@ -2120,8 +2120,8 @@ importers: packages/w3c-vc-api: dependencies: '@sphereon/did-auth-siop': - specifier: 0.4.2 - version: 0.4.2 + specifier: 0.5.0-unstable.2 + version: 0.5.0-unstable.2 '@sphereon/ssi-express-support': specifier: workspace:* version: link:../ssi-express-support @@ -6309,7 +6309,7 @@ packages: '@octokit/request-error': 3.0.3 '@octokit/types': 9.3.2 is-plain-object: 5.0.0 - node-fetch: 2.6.7 + node-fetch: 2.7.0 universal-user-agent: 6.0.0 transitivePeerDependencies: - encoding @@ -6838,14 +6838,14 @@ packages: '@sinonjs/commons': 1.8.6 dev: true - /@sphereon/did-auth-siop@0.4.2: - resolution: {integrity: sha512-uzeX530K6WxqA17X4s8jEeUb9xFymXhE+UM0uGzg7by41ohsAQ0HOoOswDxflAUap+9STXcLwgjAkQPBDPD8+w==} + /@sphereon/did-auth-siop@0.5.0-unstable.2: + resolution: {integrity: sha512-CnpiuCBMkPbje+rPu0gbByqbwdWkBZf6nMFmWcLPuk0AdQ9UVeUYz0r2M6ZwImV38piSYs++3YEuUhRjko//mg==} engines: {node: '>=16'} dependencies: '@astronautlabs/jsonpath': 1.1.2 '@sphereon/did-uni-client': 0.6.0 - '@sphereon/pex': 2.1.2 - '@sphereon/pex-models': 2.1.0 + '@sphereon/pex': 2.2.0 + '@sphereon/pex-models': 2.1.1 '@sphereon/ssi-types': link:packages/ssi-types '@sphereon/wellknown-dids-client': 0.1.3 cross-fetch: 3.1.8 @@ -6854,7 +6854,7 @@ packages: events: 3.3.0 language-tags: 1.0.9 multiformats: 11.0.2 - querystring: 0.2.1 + qs: 6.11.2 sha.js: 2.4.11 uint8arrays: 3.1.1 uuid: 9.0.1 @@ -6993,15 +6993,15 @@ packages: - encoding dev: false - /@sphereon/pex-models@2.1.0: - resolution: {integrity: sha512-uVvybJKUdseNoa1fF+0JAenufVGIkJGLq43jGFu4FC6TqG3gE2Bczsizzpz/BCLvPZDGy+0+Xe0lEPWeUkD3FQ==} + /@sphereon/pex-models@2.1.1: + resolution: {integrity: sha512-0UX/CMwgiJSxzuBn6SLOTSKkm+uPq3dkNjl8w4EtppXp6zBB4lQMd1mJX7OifX5Bp5vPUfoz7bj2B+yyDtbZww==} - /@sphereon/pex@2.1.2: - resolution: {integrity: sha512-x2lo4iRWfKj2NQIGVZIMhwYrCllRY7j0U9t3g0pkx3mxSUwXhQwEYAcBU+AlS5rGv1kLUXRhHDGPUwt7Y0kHgw==} + /@sphereon/pex@2.2.0: + resolution: {integrity: sha512-NSEyrzWorPb9K5XuznoUMsI3N4S+0xHxPtUaRP/Zkf1hfOJ7Tj+D5XsOslq171DMoTfVVvYQgha4IL2l3ukZdw==} engines: {node: '>=16'} dependencies: '@astronautlabs/jsonpath': 1.1.2 - '@sphereon/pex-models': 2.1.0 + '@sphereon/pex-models': 2.1.1 '@sphereon/ssi-types': link:packages/ssi-types ajv: 8.12.0 ajv-formats: 2.1.1(ajv@8.12.0) @@ -18606,12 +18606,6 @@ packages: side-channel: 1.0.4 dev: false - /querystring@0.2.1: - resolution: {integrity: sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==} - engines: {node: '>=0.4.x'} - deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. - dev: false - /querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==}