Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-tenant self-managed mediation verkey lookup #2232

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions aries_cloudagent/multitenant/route_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,17 @@ async def _route_for_key(
keylist_updates = await mediation_mgr.remove_key(
replace_key, keylist_updates
)

responder = self.root_profile.inject(BaseResponder)
# in order to locate the correct verkey for message packing we need
# to use the correct profile.
# if we are using default/base mediation then we need
# the root_profile to create the responder.
# if sub-wallets are configuring their own mediation, then
# we need the sub-wallet (profile) to create the responder.
responder = (
self.root_profile.inject(BaseResponder)
if base_mediation_record
else profile.inject(BaseResponder)
)
await responder.send(
keylist_updates, connection_id=mediation_record.connection_id
)
Expand Down