Skip to content

Commit 835da7a

Browse files
committed
fix: respect auto verify flag in pres proof v2
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
1 parent 5c9ce16 commit 835da7a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_handler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
6464
)
6565

6666
# Automatically move to next state if flag is set
67-
if pres_ex_record and pres_ex_record.auto_verify:
67+
if (
68+
pres_ex_record
69+
and pres_ex_record.auto_verify
70+
or context.settings.get("debug.auto_verify_presentation")
71+
):
6872
try:
6973
await pres_manager.verify_pres(pres_ex_record)
7074
except (BaseModelError, LedgerError, StorageError) as err:

0 commit comments

Comments
 (0)