Skip to content

Commit

Permalink
fix: resolve bug where presentation_definition was not set (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Dec 5, 2023
1 parent e3600c1 commit 27940d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/small-apples-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blockchain-lab-um/oidc-client-plugin': minor
---

Resolve issue where presentation_definiton was not set when using presentation_definition_uri
1 change: 1 addition & 0 deletions libs/oidc/client-plugin/src/agent/client-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down

0 comments on commit 27940d9

Please sign in to comment.