From 27940d9b52ac06716aa25a04715e4e5706f95a86 Mon Sep 17 00:00:00 2001 From: Martin Domajnko <35891136+martines3000@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:04:52 +0100 Subject: [PATCH] fix: resolve bug where presentation_definition was not set (#529) --- .changeset/small-apples-invent.md | 5 +++++ libs/oidc/client-plugin/src/agent/client-plugin.ts | 1 + packages/snap/snap.manifest.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/small-apples-invent.md diff --git a/.changeset/small-apples-invent.md b/.changeset/small-apples-invent.md new file mode 100644 index 000000000..ce83fc26c --- /dev/null +++ b/.changeset/small-apples-invent.md @@ -0,0 +1,5 @@ +--- +'@blockchain-lab-um/oidc-client-plugin': minor +--- + +Resolve issue where presentation_definiton was not set when using presentation_definition_uri diff --git a/libs/oidc/client-plugin/src/agent/client-plugin.ts b/libs/oidc/client-plugin/src/agent/client-plugin.ts index 66dc974e5..c33f87d6b 100644 --- a/libs/oidc/client-plugin/src/agent/client-plugin.ts +++ b/libs/oidc/client-plugin/src/agent/client-plugin.ts @@ -568,6 +568,7 @@ export class OIDCClientPlugin implements IAgentPlugin { } authorizationRequest.presentation_definition = presentationDefinition; + this.current.presentationDefinition = presentationDefinition; } else { this.current.presentationDefinition = JSON.parse( authorizationRequest.presentation_definition as unknown as string diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 1b07bb9ad..a2233a5ca 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -26,7 +26,7 @@ "./files/circuits/credentialAtomicQuerySigV2/circuit_final.zkey", "./files/circuits/credentialAtomicQuerySigV2/verification_key.json" ], - "shasum": "fb99U1A+m3KT+osaZo2Jrk8adHkz+AVHKK6pY7L6nHQ=" + "shasum": "vgUkqk/lkN5CHHgEFyvWarJAZqW446jP/EGGG3XT4p0=" }, "initialPermissions": { "endowment:ethereum-provider": {},