- Jan 29, 2019
-
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
In future version events won't have an event ID, so we won't be able to do this check.
-
Erik Johnston authored
We only process events sent to us from a server if the event ID matches the server, to help guard against federation storms. We replace this with a check against the event origin.
-
Erik Johnston authored
The transaction queue only sends out events that we generate. This was done by checking domain of event ID, but that can no longer be used. Instead, we may as well use the sender field.
-
Erik Johnston authored
The event ID is changing, so we can no longer get the domain from it. On the other hand, the check is unnecessary.
-
Erik Johnston authored
Since newer versions of events don't have the same format for event ID.
-
Erik Johnston authored
Refactor event building into EventBuilder
-
Richard van der Hoff authored
-
Erik Johnston authored
Fixup calls to `comput_event_signature`
-
Erik Johnston authored
-
Erik Johnston authored
-
Richard van der Hoff authored
I got fed up with always adding '@unittest.DEBUG' every time I needed to debug a test.
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
We currently pass FrozenEvent instead of `dict` to `compute_event_signature`, which works by accident due to `dict(event)` producing the correct result. This fixes PR #4493 commit 855a1510
-
Erik Johnston authored
Implement fallback for V2 invite API
-
Erik Johnston authored
-
Erik Johnston authored
`.user_id` is proxed to `.sender` in FrozenEvent, so this has no functional change
-
Erik Johnston authored
-
Erik Johnston authored
This is so that everything is done in one place, making it easier to change the event format based on room version
-
Erik Johnston authored
-
Amber Brown authored
-
Erik Johnston authored
Split up event validation between event and builder
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
This bug was introduced in PR #4470, commit 678a92cb
-
Amber Brown authored
* fix obvious problem :| * changelog
-
Erik Johnston authored
Refactor event signing to work on dicts
-
Richard van der Hoff authored
two reasons for this. One, it saves a bunch of boilerplate. Two, it squashes unicode to IDNA-in-a-`str` (even on python 3) in a way that it turns out we rely on to give consistent behaviour between python 2 and 3.
-
- Jan 28, 2019
-
-
Erik Johnston authored
Pass through room version to event auth
-
Erik Johnston authored
-
Erik Johnston authored
If the room version is either 1 or 2 then a server should retry failed `/v2/invite` requests with the v1 API
-
Erik Johnston authored
-
Amber Brown authored
* load cert * changelog * fix
-
Erik Johnston authored
-
Erik Johnston authored
The validator was being run on the EventBuilder objects, and so the validator only checked a subset of fields. With the upcoming EventBuilder refactor even fewer fields will be there to validate. To get around this we split the validation into those that can be run against an EventBuilder and those run against a fully fledged event.
-
Erik Johnston authored
-