From 85f01f0e19755e652653960117b01eb975935a0d Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Thu, 4 Apr 2024 16:10:02 -0400 Subject: [PATCH] feat: implement auto-accept behavior As outlined in #2857 Signed-off-by: Daniel Bluhm --- aries_cloudagent/protocols/didexchange/v1_0/manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aries_cloudagent/protocols/didexchange/v1_0/manager.py b/aries_cloudagent/protocols/didexchange/v1_0/manager.py index e579c006e8..cfbe652aa9 100644 --- a/aries_cloudagent/protocols/didexchange/v1_0/manager.py +++ b/aries_cloudagent/protocols/didexchange/v1_0/manager.py @@ -360,6 +360,8 @@ async def create_request( conn_rec, my_endpoints, mediation_records ) else: + if conn_rec.accept == ConnRecord.ACCEPT_AUTO: + use_did_method = "did:peer:4" try: did, attach = await self._qualified_did_with_fallback( conn_rec,