anonymousland-synapse/synapse/handlers
Richard van der Hoff 2622b28c5c
Inline _check_event_auth for outliers (#10926)
* Inline `_check_event_auth` for outliers

When we are persisting an outlier, most of `_check_event_auth` is redundant:

 * `_update_auth_events_and_context_for_auth` does nothing, because the
   `input_auth_events` are (now) exactly the event's auth_events,
   which means that `missing_auth` is empty.

 * we don't care about soft-fail, kicking guest users or `send_on_behalf_of`
   for outliers

... so the only thing that matters is the auth itself, so let's just do that.

* `_auth_and_persist_fetched_events_inner`: de-async `prep`

`prep` no longer calls any `async` methods, so let's make it synchronous.

* Simplify `_check_event_auth`

We no longer need to support outliers here, which makes things rather simpler.

* changelog

* lint
2021-09-28 15:25:07 +01:00
..
ui_auth
__init__.py
_base.py
account_data.py
account_validity.py
admin.py
appservice.py
auth.py
cas.py
deactivate_account.py
device.py
devicemessage.py
directory.py
e2e_keys.py
e2e_room_keys.py
event_auth.py
events.py
federation.py
federation_event.py
groups_local.py
identity.py
initial_sync.py
message.py
oidc.py
pagination.py
password_policy.py
presence.py
profile.py
read_marker.py
receipts.py
register.py
room.py
room_list.py
room_member.py
room_member_worker.py
room_summary.py
saml.py
search.py
send_email.py
set_password.py
sso.py
state_deltas.py
stats.py
sync.py
typing.py
user_directory.py