diff --git a/packages/siopv2-oid4vp-rp-auth/src/agent/SIOPv2RP.ts b/packages/siopv2-oid4vp-rp-auth/src/agent/SIOPv2RP.ts index 1b58aacb..bded3e4a 100644 --- a/packages/siopv2-oid4vp-rp-auth/src/agent/SIOPv2RP.ts +++ b/packages/siopv2-oid4vp-rp-auth/src/agent/SIOPv2RP.ts @@ -254,7 +254,11 @@ export class SIOPv2RP implements IAgentPlugin { } this.instances.set(instanceId, new RPInstance({ rpOpts, pexOpts: instanceOpts })) } - return this.instances.get(instanceId)! + const rpInstance = this.instances.get(instanceId)! + if (responseRedirectURI) { + rpInstance.rpOptions.responseRedirectUri = responseRedirectURI + } + return rpInstance } async getRPOptions(context: IRequiredContext, opts: { definitionId?: string; responseRedirectURI?: string }): Promise { diff --git a/packages/siopv2-oid4vp-rp-auth/src/functions.ts b/packages/siopv2-oid4vp-rp-auth/src/functions.ts index 2adcb2fa..90f62526 100644 --- a/packages/siopv2-oid4vp-rp-auth/src/functions.ts +++ b/packages/siopv2-oid4vp-rp-auth/src/functions.ts @@ -203,11 +203,9 @@ export async function createRPBuilder(args: { builder.withPresentationDefinition({ definition }, PropertyTarget.REQUEST_OBJECT) } - /* - FIXME: Re-enable if (rpOpts.responseRedirectUri) { builder.withResponseRedirectUri(rpOpts.responseRedirectUri) - }*/ + } //const key = resolution.key //fixme: this has been removed in the new version of did-auth-siop diff --git a/packages/ssi-types/package.json b/packages/ssi-types/package.json index d74504f5..5e35eefc 100644 --- a/packages/ssi-types/package.json +++ b/packages/ssi-types/package.json @@ -11,7 +11,6 @@ "dependencies": { "@sd-jwt/decode": "^0.7.2", "@sphereon/kmp-mdl-mdoc": "0.2.0-SNAPSHOT.22", - "@sphereon/ssi-sdk-ext.jwt-service": "0.24.1-unstable.134", "debug": "^4.3.5", "events": "^3.3.0", "jwt-decode": "^3.1.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a59635ec..1ff9a968 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2570,9 +2570,6 @@ importers: '@sphereon/kmp-mdl-mdoc': specifier: 0.2.0-SNAPSHOT.22 version: 0.2.0-SNAPSHOT.22 - '@sphereon/ssi-sdk-ext.jwt-service': - specifier: 0.24.1-unstable.134 - version: 0.24.1-unstable.134(ts-node@10.9.2) debug: specifier: ^4.3.5 version: 4.3.6