File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments