mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Add admin API for logging in as a user (#8617)
This commit is contained in:
parent
3dc1871219
commit
f737368a26
25 changed files with 475 additions and 87 deletions
|
@ -49,6 +49,7 @@ class ModuleApi:
|
|||
self._store = hs.get_datastore()
|
||||
self._auth = hs.get_auth()
|
||||
self._auth_handler = auth_handler
|
||||
self._server_name = hs.hostname
|
||||
|
||||
# We expose these as properties below in order to attach a helpful docstring.
|
||||
self._http_client = hs.get_simple_http_client() # type: SimpleHttpClient
|
||||
|
@ -336,7 +337,9 @@ class ModuleApi:
|
|||
SynapseError if the event was not allowed.
|
||||
"""
|
||||
# Create a requester object
|
||||
requester = create_requester(event_dict["sender"])
|
||||
requester = create_requester(
|
||||
event_dict["sender"], authenticated_entity=self._server_name
|
||||
)
|
||||
|
||||
# Create and send the event
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue