Skip to content

Commit 91ba45b

Browse files
committed
feat: check for new flag
Signed-off-by: Micah Peltier <micah6_8@yahoo.com>
1 parent ff3edd8 commit 91ba45b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • aries_cloudagent/protocols/didexchange/v1_0

aries_cloudagent/protocols/didexchange/v1_0/manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ async def receive_request(
483483
)
484484
else:
485485
# request is against implicit invitation on public DID
486+
if not self.profile.settings.get("requests_through_public_did"):
487+
raise DIDXManagerError("Unsolicited connection requests to "
488+
"public DID is not enabled")
486489
async with self.profile.session() as session:
487490
wallet = session.inject(BaseWallet)
488491
my_info = await wallet.create_local_did(

0 commit comments

Comments
 (0)