Skip to content

Commit 56b7580

Browse files
authored
Merge pull request #84 from OpenMined/features/webhooks
Features/webhooks
2 parents 814d109 + 01bb884 commit 56b7580

File tree

67 files changed

+2349
-2503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2349
-2503
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
2+
.venv
23
.code
34
dist
45
*.egg-info
@@ -14,4 +15,4 @@ libs/om-aries-controller/demo/bob/image_received.png
1415
# exception to the rule
1516
!libs/om-aries-controller/demo/bob/received_files/.gitkeep
1617

17-
**/*.pt
18+
**/*.pt

helpers/create_connection/create_connection.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
BOB_WEBHOOK_BASE = os.getenv('BOB_WEBHOOK_BASE')
2020

2121

22-
23-
24-
2522
async def start_agent():
2623

2724
time.sleep(10)
2825

2926
# Inviter
30-
bob_agent_controller = AriesAgentController(webhook_host=BOB_WEBHOOK_HOST, webhook_port=BOB_WEBHOOK_PORT,
31-
webhook_base=BOB_WEBHOOK_BASE, admin_url=BOB_ADMIN_URL)
32-
27+
bob_agent_controller = AriesAgentController(admin_url=BOB_ADMIN_URL)
3328

3429
# Invitee
35-
alice_agent_controller = AriesAgentController(webhook_host=ALICE_WEBHOOK_HOST, webhook_port=ALICE_WEBHOOK_PORT,
36-
webhook_base=ALICE_WEBHOOK_BASE, admin_url=ALICE_ADMIN_URL, api_key=ALICE_API_KEY)
30+
alice_agent_controller = AriesAgentController(
31+
admin_url=ALICE_ADMIN_URL,
32+
api_key=ALICE_API_KEY)
3733

34+
# alice_agent_controller.init_webhook_server(
35+
# webhook_host=ALICE_WEBHOOK_HOST,
36+
# webhook_port=ALICE_WEBHOOK_PORT,
37+
# webhook_base=ALICE_WEBHOOK_BASE)
3838

3939
# await alice_agent_controller.listen_webhooks()
4040
#
@@ -113,4 +113,3 @@ async def start_agent():
113113
asyncio.get_event_loop().run_until_complete(start_agent())
114114
except KeyboardInterrupt:
115115
os._exit(1)
116-

libs/aries-basic-controller/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist
44
*.egg-info
55
build
66
.env
7-
.ipynb_checkpoints/
7+
.ipynb_checkpoints/
8+
.venv

0 commit comments

Comments
 (0)