Skip to content

Commit

Permalink
Merge pull request hyperledger#2232 from usingtechnology/bugfix/issue…
Browse files Browse the repository at this point in the history
…-2231

Multi-tenant self-managed mediation verkey lookup
  • Loading branch information
swcurran committed May 15, 2023
2 parents 964f2c4 + 1f26479 commit 76240b8
Showing 1 changed file with 11 additions and 2 deletions.
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

0 comments on commit 76240b8

Please sign in to comment.