Skip to content

Commit 9cdb75e

Browse files
committed
feat: add flag for unsolicited requests
Signed-off-by: Micah Peltier <micah6_8@yahoo.com>
1 parent 56adc18 commit 9cdb75e

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

aries_cloudagent/config/argparse.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,17 @@ def add_arguments(self, parser: ArgumentParser):
10141014
action="store_true",
10151015
env_var="ACAPY_PUBLIC_INVITES",
10161016
help=(
1017-
"Send invitations out, and receive connection requests, "
1017+
"Send invitations out using the public DID for the agent, "
1018+
"and receive connection requests solicited by invitations "
1019+
"which use the public DID. Default: false."
1020+
),
1021+
)
1022+
parser.add_argument(
1023+
"--requests-through-public-did",
1024+
action="store_true",
1025+
env_var="ACAPY_REQUESTS_THROUGH_PUBLIC_DID",
1026+
help=(
1027+
"Allow agent to receive unsolicited connection requests, "
10181028
"using the public DID for the agent. Default: false."
10191029
),
10201030
)
@@ -1109,6 +1119,11 @@ def get_settings(self, args: Namespace) -> dict:
11091119
settings["monitor_forward"] = args.monitor_forward
11101120
if args.public_invites:
11111121
settings["public_invites"] = True
1122+
if args.requests_through_public_did:
1123+
if not args.public_invites:
1124+
raise ArgsParseError("--public-invites is required to use "
1125+
"--requests-through-public-did")
1126+
settings["requests_through_public_did"] = True
11121127
if args.timing:
11131128
settings["timing.enabled"] = True
11141129
if args.timing_log:

0 commit comments

Comments
 (0)