summary refs log tree commit diff
path: root/synapse/api (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'markjh/eventstream_presence' into markjh/v2_sync_apiMark Haines2015-10-092-1/+25
|\
| * Add 'trusted_private_chat' to room creation presetsErik Johnston2015-10-021-0/+1
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/unfederatableErik Johnston2015-10-023-19/+140
| |\
| * \ Merge branch 'develop' of github.com:matrix-org/synapse into erikj/unfederatableErik Johnston2015-09-141-8/+27
| |\ \
| * | | Also check the domains for membership state_keysErik Johnston2015-09-011-0/+9
| | | |
| * | | Merge branch 'erikj/check_room_exists' into erikj/unfederatableErik Johnston2015-09-011-0/+8
| |\ \ \
| * | | | Check against sender rather than event_idErik Johnston2015-09-011-3/+3
| | | | |
| * | | | Add flag which disables federation of the roomErik Johnston2015-09-011-1/+15
| | | | |
* | | | | Move the rooms out into a room_map mapping from room_id to room.Mark Haines2015-10-051-1/+7
| | | | |
* | | | | Start updating the sync API to match the specificationMark Haines2015-10-011-1/+4
| |_|_|/ |/| | |
* | | | synapse/api/errors.py:RoomError was unusedMark Haines2015-09-221-5/+0
| | | |
* | | | Merge pull request #276 from ↵Mark Haines2015-09-212-11/+51
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | matrix-org/markjh/history_for_rooms_that_have_been_left SPEC-216: Allow users to view the history of rooms that they have left.
| * | | | Clarify which event is returned by check_user_was_in_roomMark Haines2015-09-211-2/+3
| | | | |
| * | | | Remove undocumented and unimplemented 'feedback' parameter from the ↵Mark Haines2015-09-091-11/+0
| | | | | | | | | | | | | | | | | | | | Client-Server API
| * | | | Allow rooms/{roomId}/state for a room that has been leftMark Haines2015-09-091-1/+2
| | | | |
| * | | | Allow room initialSync for users that have left the room, returning a ↵Mark Haines2015-09-091-0/+49
| | | | | | | | | | | | | | | | | | | | snapshot of how the room was when they left it
* | | | | Merge pull request #256 from matrix-org/authDaniel Wagner-Hall2015-09-141-3/+89
|\ \ \ \ \ | |_|_|_|/ |/| | | | Attempt to validate macaroons
| * | | | s/user_id/user/g for consistencyDaniel Wagner-Hall2015-09-011-10/+10
| | | | |
| * | | | Attempt to validate macaroonsDaniel Wagner-Hall2015-08-261-9/+95
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A couple of weird caveats: * If we can't validate your macaroon, we fall back to checking that your access token is in the DB, and ignoring the failure * Even if we can validate your macaroon, we still have to hit the DB to get the access token ID, which we pretend is a device ID all over the codebase. This mostly adds the interesting code, and points out the two pieces we need to delete (and necessary conditions) in order to fix the above caveats.
* | | | Merge pull request #265 from matrix-org/erikj/check_room_existsErik Johnston2015-09-141-0/+8
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| Check room exists when authenticating an event
| * | Fix testsErik Johnston2015-09-011-1/+1
| | |
| * | Check room exists when authenticating an event, by asserting they reference ↵Erik Johnston2015-09-011-0/+8
| |/ | | | | | | a creation event
* | Check domain of events properlyDaniel Wagner-Hall2015-09-011-1/+3
| | | | | | | | Federated servers still need to delegate authority to owning servers
* | Allow users to redact their own eventsDaniel Wagner-Hall2015-08-281-8/+25
|/
* Stop looking up "admin", which we never readDaniel Wagner-Hall2015-08-251-3/+1
|
* Re-wrap lineDaniel Wagner-Hall2015-08-251-3/+1
|
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-10/+7
| | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly.
* Merge branch 'develop' into refreshDaniel Wagner-Hall2015-08-202-0/+3
|\ | | | | | | | | Conflicts: synapse/rest/client/v1/login.py
| * Add m.room.avatar to default power levels. Change default required power ↵Erik Johnston2015-08-201-0/+1
| | | | | | | | levels of such events to 50
| * Merge pull request #233 from matrix-org/erikj/canonical_aliasErik Johnston2015-08-201-0/+1
| |\ | | | | | | Add server side support for canonical aliases
| | * Add canonical alias to the default power levelsErik Johnston2015-08-191-0/+1
| | |
| * | Merge pull request #211 from matrix-org/email_in_useMark Haines2015-08-201-0/+1
| |\ \ | | |/ | |/| Changes for unique emails
| | * Add endpoint that proxies ID server request token and errors if the given ↵David Baker2015-08-041-0/+1
| | | | | | | | | | | | email is in use on this Home Server.
* | | s/by_token/by_access_token/gDaniel Wagner-Hall2015-08-201-3/+3
|/ / | | | | | | We're about to have two kinds of token, access and refresh
* | Set request.authenticated_entity for application servicesErik Johnston2015-08-181-0/+3
| |
* | Add missing space because linterDaniel Wagner-Hall2015-08-111-1/+1
| |
* | Minor docs cleanupDaniel Wagner-Hall2015-08-111-2/+7
| |
* | Remove redundant if-guardDaniel Wagner-Hall2015-08-111-13/+12
|/ | | | The startswith("@") does the job
* Merge pull request #203 from matrix-org/erikj/room_creation_presetsErik Johnston2015-07-161-0/+5
|\ | | | | Implement presets at room creation
| * Capitalize contantsErik Johnston2015-07-141-2/+2
| |
| * Implement presets at room creationErik Johnston2015-07-131-0/+5
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2015-07-132-1/+4
|\| | | | | | | erikj/power_level_sanity
| * Add m.room.history_visibility to newly created rooms' m.room.power_levelsErik Johnston2015-07-061-0/+1
| |
| * Add m.room.history_visibility to list of auth eventsErik Johnston2015-07-031-1/+1
| |
| * Add basic impl for room history ACL on GET /messages client APIErik Johnston2015-07-021-0/+2
| |
* | Sanitize power level checksErik Johnston2015-07-101-15/+21
| |
* | You shouldn't be able to ban/kick users with higher power levelsErik Johnston2015-07-101-2/+5
|/
* Log more when we have processed the requestErik Johnston2015-06-151-0/+2
|
* TypoErik Johnston2015-05-011-1/+1
|
* Remove some run_on_reactorsErik Johnston2015-05-011-3/+0
|
* Don't log all auth events every time we call auth.checkErik Johnston2015-05-011-1/+4
|
* Don't wait for storage of access_tokenErik Johnston2015-05-011-1/+1
|
* Merge branch 'develop' into key_distributionMark Haines2015-04-293-19/+40
|\ | | | | | | | | Conflicts: synapse/config/homeserver.py
| * Merge pull request #126 from matrix-org/csauthMark Haines2015-04-283-19/+32
| |\ | | | | | | Client / Server Auth Refactor
| | * Merge branch 'develop' into csauthDavid Baker2015-04-242-60/+32
| | |\ | | | | | | | | | | | | | | | | Conflicts: synapse/http/server.py
| | * | Dedicated error code for failed 3pid auth verificationDavid Baker2015-04-231-0/+1
| | | |
| | * | Add an error code to 'missing token' response.David Baker2015-04-232-1/+3
| | | |
| | * | Merge branch 'develop' into csauthDavid Baker2015-04-171-14/+11
| | |\ \
| | * | | Dummy login so we can do the first POST request to get login flows without ↵David Baker2015-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | it just succeeding
| | * | | Add app service auth back in to v2 registerDavid Baker2015-04-021-3/+1
| | | | |
| | * | | Add shared secret auth into register v2 and switch the script over.David Baker2015-04-021-1/+3
| | | | |
| | * | | New registration for C/S API v2. Only ReCAPTCHA working currently.David Baker2015-03-301-0/+2
| | | | |
| | * | | unused importDavid Baker2015-03-241-1/+1
| | | | |
| | * | | 1) Pushers are now associated with an access tokenDavid Baker2015-03-241-18/+25
| | | | | | | | | | | | | | | | | | | | 2) Change places where we mean unauthenticated to 401, not 403, in C/S v2: hack so it stays as 403 in v1 because web client relies on it.
| * | | | Merge branch 'develop' into invite_power_levelPaul "LeoNerd" Evans2015-04-272-38/+14
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Also remember to check 'invite' level for changesPaul "LeoNerd" Evans2015-04-211-0/+1
| | | | |
| * | | | Initial implementation of an 'invite' power_levelPaul "LeoNerd" Evans2015-04-211-0/+7
| | | | |
* | | | | Merge branch 'develop' into key_distributionMark Haines2015-04-242-60/+32
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | No commas here, otherwise our error string constants become tuples.David Baker2015-04-241-2/+2
| | | | |
| * | | | Neater fetching of user's auth level in a room - squash to int() at access ↵Paul "LeoNerd" Evans2015-04-221-35/+12
| | | | | | | | | | | | | | | | | | | | time (SYN-353)
| * | | | Appease pep8Paul "LeoNerd" Evans2015-04-221-1/+0
| |/ / /
| * | | Much neater fetching of defined powerlevels from m.room.power_levels state eventPaul "LeoNerd" Evans2015-04-211-31/+21
| | | |
| * | | Remove debugging print statement accidentally committedPaul "LeoNerd" Evans2015-04-211-1/+0
| | | |
| * | | Sanitise a user's powerlevel to an int() before numerical comparison, ↵Paul "LeoNerd" Evans2015-04-211-0/+7
| | |/ | |/| | | | | | | because otherwise Python is "helpful" with it (SYN-351)
* | | Merge branch 'develop' into key_distributionMark Haines2015-04-201-13/+10
|\| |
| * | Neater implementation of membership change auth checks, ensuring we can't ↵Paul "LeoNerd" Evans2015-04-151-18/+10
| | | | | | | | | | | | forget to check if the calling user is a member of the room
| * | Ensure that non-room-members cannot ban others, even if they do have enough ↵Paul "LeoNerd" Evans2015-04-151-0/+5
| | | | | | | | | | | | powerlevel (SYN-343)
* | | Add a version 2 of the key server apiMark Haines2015-04-141-0/+1
|/ /
* / Fix a bug which causes a send event level of 0 to not be honoured.Kegan Dougal2015-04-071-1/+1
|/ | | | | Caused by a bad if check, which incorrectly executes for both 0 and None, when None was the original intent.
* Merge pull request #109 from matrix-org/default_registrationErik Johnston2015-03-181-0/+1
|\ | | | | Disable registration by default. Add script to register new users.
| * Implement registering with shared secret.Erik Johnston2015-03-131-0/+1
| |
* | @cached() annotate get_user_by_token() - achieves a minor DB performance ↵Paul "LeoNerd" Evans2015-03-171-1/+1
| | | | | | | | improvement
* | Remove concept of context.auth_events, instead use context.current_stateErik Johnston2015-03-161-6/+0
| |
* | Make context.auth_events grap auth events from current state. Otherwise auth ↵Erik Johnston2015-03-161-1/+7
| | | | | | | | is wrong.
* | Respect ban membershipErik Johnston2015-03-161-5/+17
|/
* Add RegisterFallbackResource to /_matrix/static/client/registerKegan Dougal2015-02-231-0/+1
| | | | | Try to keep both forms of registration logic (native/fallback) close together for sanity.
* Merge branch 'develop' into application-servicesKegan Dougal2015-02-111-7/+14
|\
| * During room intial sync, only calculate current state once.Erik Johnston2015-02-091-7/+14
| |
* | Modify auth.get_user_by_req for authing appservices directly.Kegan Dougal2015-02-091-18/+16
| | | | | | | | | | | | Add logic to map the appservice token to the autogenned appservice user ID. Add unit tests for all forms of get_user_by_req (user/appservice, valid/bad/missing tokens)
* | Grant ASes the ability to create alias in their own namespace.Kegan Dougal2015-02-062-1/+14
| | | | | | | | | | | | Add a new errcode type M_EXCLUSIVE when users try to create aliases inside AS namespaces, and when ASes try to create aliases outside their own namespace.
* | Add m.login.application_service registration procedure.Kegan Dougal2015-02-051-0/+1
| | | | | | | | | | This allows known application services to register any user ID under their own user namespace(s).
* | Fix unit tests.Kegan Dougal2015-02-051-0/+6
| |
* | Add CS extension for masquerading as users within the namespaces specified ↵Kegan Dougal2015-02-051-0/+23
| | | | | | | | by the AS.
* | Merge branch 'develop' into application-servicesKegan Dougal2015-02-052-9/+13
|\|
| * Merge branch 'signature_failures' of github.com:matrix-org/synapse into ↵Erik Johnston2015-02-041-6/+6
| |\ | | | | | | | | | federation_client_retries
| | * Change context.auth_events to what the auth_events would be bases on ↵Erik Johnston2015-02-041-6/+6
| | | | | | | | | | | | context.current_state, rather than based on the auth_events from the event.
| * | Apply sanity to the transport client interface. Convert 'make_join' and ↵Erik Johnston2015-02-041-1/+7
| |/ | | | | | | 'send_join' to accept iterables of destinations
| * Keep around the old (buggy) version of the prune_event function so that we ↵Erik Johnston2015-02-031-2/+0
| | | | | | | | can use it to check signatures for events on old servers
* | Merge branch 'develop' into application-servicesKegan Dougal2015-02-024-20/+297
|\| | | | | | | | | | | Conflicts: synapse/handlers/__init__.py synapse/storage/__init__.py
| * Merge branch 'develop' of github.com:matrix-org/synapse into rejectionsErik Johnston2015-01-301-0/+229
| |\ | | | | | | | | | | | | Conflicts: synapse/storage/schema/im.sql
| | * Use 'in' to test if the key exists, remove unused _filters_for_userMark Haines2015-01-301-6/+2
| | |
| | * Unused importMark Haines2015-01-301-2/+0
| | |
| | * Create a separate filter object to do the actual filtering, so that we canMark Haines2015-01-291-112/+108
| | | | | | | | | | | | | | | split the storage and management of filters from the actual filter code and don't have to load a filter from the db each time we filter an event
| | * Merge branch 'develop' into client_v2_filterMark Haines2015-01-291-0/+1
| | |\
| | * | Fix code-styleMark Haines2015-01-291-13/+6
| | | |
| | * | Merge changes from developMark Haines2015-01-292-3/+38
| | |\ \
| | * | | Add basic filtering public API unit tests. Use defers in the right places.Kegan Dougal2015-01-291-4/+7
| | | | |
| | * | | Implement filter algorithm. Add basic event type unit tests to assert it works.Kegan Dougal2015-01-291-0/+49
| | | | |
| | * | | Add filtering public API; outline filtering algorithm.Kegan Dougal2015-01-291-8/+52
| | | | |
| | * | | Add filtering.filter_events function, with stub passes_filter function.Kegan Dougal2015-01-291-0/+15
| | | | |
| | * | | Add filter JSON sanity checks.Kegan Dougal2015-01-281-4/+105
| | | | |
| | * | | Move storage of user filters into real datastore layer; now have to mock it ↵Paul "LeoNerd" Evans2015-01-271-23/+4
| | | | | | | | | | | | | | | | | | | | out in the REST-level tests
| | * | | Have the Filtering API return Deferreds, so we can do the Datastore ↵Paul "LeoNerd" Evans2015-01-271-2/+14
| | | | | | | | | | | | | | | | | | | | implementation nicely
| | * | | Initial trivial implementation of an actual 'Filtering' object; move storage ↵Paul "LeoNerd" Evans2015-01-271-0/+41
| | | | | | | | | | | | | | | | | | | | of user filters into there
| * | | | Fix bug where we superfluously asked for current state. Change API of ↵Erik Johnston2015-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | /query_auth/ so that we don't duplicate events in the response.
| * | | | Merge branch 'develop' of github.com:matrix-org/synapse into rejectionsErik Johnston2015-01-303-3/+40
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py synapse/storage/schema/delta/v12.sql
| | * | | Code style fixes.Mark Haines2015-01-291-0/+1
| | | |/ | | |/|
| | * | Merge pull request #36 from matrix-org/device_id_from_access_tokenMark Haines2015-01-281-3/+8
| | |\ \ | | | | | | | | | | Extract the device id and token id from the access token when autheniticating users
| | | * | Rename ClientID to ClientInfo since it is a pair of IDs rather than a single ↵Mark Haines2015-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | identifier
| | | * | Add a : to the doc string after the type of the return valueMark Haines2015-01-281-1/+1
| | | | |
| | | * | Extract the id token of the token when authing users, include the token and ↵Mark Haines2015-01-281-3/+5
| | | | | | | | | | | | | | | | | | | | device_id in the internal meta data for the event along with the transaction id when sending events
| | | * | Return the device_id from get_auth_by_reqMark Haines2015-01-281-2/+5
| | | |/
| | * | Merge branch 'develop' into pushersDavid Baker2015-01-282-4/+6
| | |\| | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/events.py synapse/server.py
| | * | Add slightly pedantic trailing slash error.David Baker2015-01-231-1/+6
| | | |
| | * | right super() paramDavid Baker2015-01-231-1/+1
| | | |
| | * | As yet fairly untested GET API for push rulesDavid Baker2015-01-221-1/+13
| | | |
| | * | Oops: second part of commit dc938606David Baker2015-01-221-0/+12
| | | |
| | * | Merge branch 'develop' into pushersDavid Baker2015-01-136-6/+6
| | |\ \
| | * \ \ Merge branch 'develop' into pushersDavid Baker2014-12-189-632/+73
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/api/errors.py synapse/server.py synapse/storage/__init__.py
| | * \ \ \ Merge branch 'develop' into pushersDavid Baker2014-12-022-73/+78
| | |\ \ \ \
| | * \ \ \ \ Merge branch 'develop' into pushersDavid Baker2014-11-204-4/+9
| | |\ \ \ \ \
| | * | | | | | Start creating a module to do generic notifications (just prints them to ↵David Baker2014-11-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stdout currently!)
| * | | | | | | Start implementing auth conflict resErik Johnston2015-01-282-17/+27
| | | | | | | |
* | | | | | | | Add stub application services REST API.Kegan Dougal2015-01-271-0/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Add client v2_alpha resource to synapse server resource treeMark Haines2015-01-231-0/+1
|/ / / / / /
* | | | | / Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-4/+5
| |_|_|_|/ |/| | | |
* | | | | SYN-154: Tweak how the m.room.create check is done.Kegan Dougal2015-01-071-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Don't perform the check in auth.is_host_in_room but instead do it in _do_join and also assert that there are no m.room.members in the room before doing so.
* | | | | SYN-154: Better error messages when joining an unknown room by ID.Kegan Dougal2015-01-071-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The simple fix doesn't work here because room creation also involves unknown room IDs. The check relies on the presence of m.room.create for rooms being created, whereas bogus room IDs have no state events at all.
* | | | | Update copyright noticesMark Haines2015-01-066-6/+6
| |_|_|/ |/| | |
* | | | Kill off synapse.api.events.*Erik Johnston2014-12-166-580/+1
| | | |
* | | | Make auth module use EventTypes constantsErik Johnston2014-12-121-27/+23
| | | |
* | | | Validate message, topic and name event contentsErik Johnston2014-12-121-0/+5
| | | |
* | | | Fix stream test. Make sure we add join to auth_events for invitiationsErik Johnston2014-12-121-0/+6
| | | |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-112-0/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: setup.py
| * | | | Limit the size of images that are thumbnailed serverside. Limit the size of ↵Mark Haines2014-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | file that a server will download from a remote server
| * | | | Merge branch 'develop' into media_repositoryMark Haines2014-12-102-72/+77
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Get uploads working with new media repoMark Haines2014-12-021-0/+1
| | | | |
* | | | | PEP8Erik Johnston2014-12-091-1/+1
| | | | |
* | | | | Remove unused importErik Johnston2014-12-081-1/+0
| | | | |
* | | | | Various typos and bug fixes.Erik Johnston2014-12-081-7/+9
| | | | |
* | | | | Start making more things use EventContext rather than event.*Erik Johnston2014-12-051-13/+20
| | | | |
* | | | | Begin converting things to use the new Event structureErik Johnston2014-12-041-9/+2
| | | | |
* | | | | WIP for new way of managing events.Erik Johnston2014-12-032-6/+16
| | | | |
* | | | | Change DomainSpecificString so that it doesn't use a HomeServer objectErik Johnston2014-12-021-1/+1
| |/ / / |/| | |
* | | | Fix bugs when joining a remote room that has dodgy event graphs. This should ↵Erik Johnston2014-11-271-2/+8
| | | | | | | | | | | | | | | | also fix the number of times a HS will trigger a GET /event/
* | | | Fix bugs in invite/join dances.Erik Johnston2014-11-252-70/+69
|/ / / | | | | | | | | | | | | We now do more implement more of the auth on the events so that we don't reject valid events.
* | / Add missing None checkErik Johnston2014-11-241-1/+1
| |/ |/|
* | Fix pep8 codestyle warningsMark Haines2014-11-202-2/+2
| |
* | Use module loggers rather than the root logger. Exceptions caused by bad ↵Mark Haines2014-11-202-2/+7
|/ | | | clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str'
* Only users can set state events which have their own user_idErik Johnston2014-11-191-0/+20
|
* replace user_id with senderMark Haines2014-11-191-1/+3
|
* SYN-144: Remove bad keys from pdu json objects, convert age_ts to ageMark Haines2014-11-181-1/+12
| | | | for all pdus sent.
* Null check when determining default power levelsMark Haines2014-11-181-1/+2
|
* Fix auth to correctly handle initial creation of roomsErik Johnston2014-11-181-3/+21
|
* Merge PDUs and Events into one objectMark Haines2014-11-142-0/+8
|
* Fix bugs with invites/joins across federatiom.Erik Johnston2014-11-121-3/+16
| | | | | Both in terms of auth and not trying to fetch missing PDUs for invites, joins etc.
* Fix typo in validatorErik Johnston2014-11-111-2/+8
|
* Add EventValidator moduleErik Johnston2014-11-111-0/+81
|
* Add an EventValidator. Fix bugs in auth ++ storageErik Johnston2014-11-102-66/+11
|
* PEP8Erik Johnston2014-11-102-2/+2
|
* Fix backfill to work. Add auth to backfill requestErik Johnston2014-11-101-0/+6
|
* Notify users about invites.Erik Johnston2014-11-101-7/+9
|
* Fix invite authErik Johnston2014-11-101-3/+5
|
* Finish redaction algorithm.Erik Johnston2014-11-102-15/+28
|
* Add hash of current state to eventsErik Johnston2014-11-071-0/+1
|
* Fix joining over federationErik Johnston2014-11-072-3/+52
|
* Start implementing auth chainsErik Johnston2014-11-072-3/+2
|
* Neaten things up a bitErik Johnston2014-11-071-5/+2
|
* Amalgamate all power levels.Erik Johnston2014-11-065-190/+86
| | | | | Remove concept of reqired power levels, something similiar can be done using the new power level event.
* Don't send prev_state to clients anymoreErik Johnston2014-11-061-1/+1
|
* Implement new replace_state and changed prev_stateErik Johnston2014-11-061-0/+1
| | | | | `prev_state` is now a list of previous state ids, similiar to prev_events. `replace_state` now points to what we think was replaced.
* Fix auth checks to all use the given old_event_stateErik Johnston2014-11-051-24/+31
|
* Move FederationError to synapse.api.errorsErik Johnston2014-11-041-0/+34
|
* Fix bugs in generating event signatures and hashingErik Johnston2014-11-031-0/+1
|
* Rename PDU fields to match that of events.Erik Johnston2014-11-031-1/+1
|
* Add 'origin' key to eventsErik Johnston2014-11-031-0/+4
|
* Fix bug in redaction auth.Erik Johnston2014-10-311-2/+2
| | | | | This caused a 500 when sending a redaction due to a typo in a method invocation.
* Convert event ids to be of the form :example.comErik Johnston2014-10-301-1/+5
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-303-3/+4
|\ | | | | | | federation_authorization
| * Fix pep8 warningsMark Haines2014-10-303-3/+4
| |
* | Begin implementing all the PDU storage stuff in Events landErik Johnston2014-10-281-1/+3
| |
* | Merge branch 'event_signing' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-272-9/+16
|\ \ | | | | | | | | | | | | | | | | | | federation_authorization Conflicts: synapse/storage/__init__.py
| * | Merge branch 'develop' into event_signingMark Haines2014-10-171-2/+2
| |\| | | | | | | | | | | | | Conflicts: synapse/federation/replication.py
| * | Include hashes of previous pdus when referencing themMark Haines2014-10-161-1/+1
| | |
| * | persist hashes and origin signatures for PDUsMark Haines2014-10-151-8/+15
| | |
* | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-271-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | federation_authorization Conflicts: synapse/federation/transport.py synapse/handlers/message.py
| * | SPEC-7: Rename 'ts' to 'origin_server_ts'Mark Haines2014-10-171-2/+2
| |/
* | Fix bug where people could join private roomsErik Johnston2014-10-171-39/+47
| |
* | Use state groups to get current state. Make join dance actually work.Erik Johnston2014-10-171-0/+5
| |
* | Finish implementing the new join dance.Erik Johnston2014-10-172-3/+20
| |
* | Start implementing the invite/join dance. Continue moving auth to use ↵Erik Johnston2014-10-161-10/+6
| | | | | | | | event.state_events
* | Begin making auth use event.old_state_eventsErik Johnston2014-10-151-43/+70
|/
* Respond with more helpful error messages for unsigned requestsMark Haines2014-10-131-0/+1
|
* Merge branch 'develop' into server2server_signingMark Haines2014-09-305-14/+150
|\ | | | | | | | | | | Conflicts: synapse/storage/__init__.py tests/rest/test_presence.py
| * Update docstringErik Johnston2014-09-291-1/+1
| |
| * SYN-48: Implement WHOIS rest servletErik Johnston2014-09-291-9/+19
| |
| * Add auth check to test if a user is an admin or not.Erik Johnston2014-09-291-0/+3
| |
| * SYN-48: Track User-Agents as well as IPs for client devices.Erik Johnston2014-09-291-1/+10
| |
| * Track the IP users connect with. Add an admin column to users table.Erik Johnston2014-09-261-1/+9
| |
| * Merge branch 'deletions' of github.com:matrix-org/synapse into developErik Johnston2014-09-255-6/+112
| |\
| | * Don't strip out null's in serialized events, as that is not need anymore and ↵Erik Johnston2014-09-251-1/+2
| | | | | | | | | | | | it's not in the spec (yet)
| | * Don't strip of False values from events when serializingErik Johnston2014-09-251-1/+1
| | |
| | * Rename deletions to redactionsErik Johnston2014-09-245-18/+18
| | |
| | * Fill out the prune_event method.Erik Johnston2014-09-241-6/+31
| | |
| | * Rename 'pruned' to 'pruned_because'Erik Johnston2014-09-231-1/+1
| | |
| | * SYN-12: Implement auth for deletion by adding a 'delete_level' on the ops ↵Erik Johnston2014-09-231-3/+31
| | | | | | | | | | | | | | | | | | levels event SYN-12 # comment Auth has been added.
| | * Add prune_event methodErik Johnston2014-09-231-0/+39
| | |
| | * Add m.room.deletion. If an event is deleted it will be returned to clients ↵Erik Johnston2014-09-233-3/+16
| | | | | | | | | | | | 'pruned', i.e. all client specified keys will be removed.
| * | SYN-70: And fix another bug where I can't typeErik Johnston2014-09-241-1/+1
| | |
| * | SYN-70: Fix typoErik Johnston2014-09-241-1/+1
| |/
* / Add a _matrix/key/v1 resource with the verification keys of the local serverMark Haines2014-09-231-1/+2
|/
* Merge branch 'develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-172-4/+11
|\
| * Fix bug where we didn't always get 'prev_content' keyErik Johnston2014-09-151-4/+1
| |
| * Fix bug where we incorrectly calculated 'age_ts' from 'age' key rather than ↵Erik Johnston2014-09-151-0/+1
| | | | | | | | the reverse. Don't transmit age_ts to clients for now.
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Kegan Dougal2014-09-152-0/+21
| |\ | | | | | | | | | registration-api-changes in preparation for re-merge to develop.
| * | Added LoginType constants. Created general structure for processing ↵Kegan Dougal2014-09-151-0/+9
| | | | | | | | | | | | registrations.
* | | Print expected-vs-actual data types on typecheck failure from check_json()Paul "LeoNerd" Evans2014-09-171-1/+2
| |/ |/|
* | Correctly handle the 'age' key in events and pdusErik Johnston2014-09-152-0/+21
|/
* Added captcha support on both the HS and web client.Kegan Dougal2014-09-051-0/+15
|\ | | | | | | Merge branch 'captcha' of github.com:matrix-org/synapse into develop
| * Captchas now work on registration. Missing x-forwarded-for config arg ↵Kegan Dougal2014-09-051-1/+15
| | | | | | | | support. Missing reloading a new captcha on the web client / displaying a sensible error message.
| * Added a captcha config to the HS, to enable registration captcha checking ↵Kegan Dougal2014-09-051-0/+1
| | | | | | | | and for the recaptcha private key.
* | Fix generation of event ids so that they are consistent between local and ↵Erik Johnston2014-09-061-1/+4
| | | | | | | | remote ids
* | When getting a state event also include the previous contentErik Johnston2014-09-061-1/+6
| |
* | Validate power levels event changes. Change error messages to be more ↵Erik Johnston2014-09-051-10/+37
| | | | | | | | helpful. Fix bug where we checked the wrong power levels
* | Generate m.room.aliases event when the HS creates a room aliasErik Johnston2014-09-052-1/+13
|/
* AUth the contents of power level eventsErik Johnston2014-09-051-1/+72
|
* Change the default power levels to be 0, 50 and 100Erik Johnston2014-09-051-2/+2
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-039-9/+9
| | | | hasn't been incorporated in time for launch.
* Updated feedback api docs and fixed feedback content template bugKegan Dougal2014-09-031-2/+1
|
* Add copyright notices and fix pyflakes errorsMark Haines2014-09-031-1/+15
|
* Set status message for ratelimit error responsesMark Haines2014-09-031-0/+2
|
* Merge branch 'ratelimiting' into developMark Haines2014-09-032-7/+93
|\
| * Raise LimitExceedError when the ratelimiting is throttling requestsMark Haines2014-09-031-7/+27
| |
| * Add ratelimiting function to basehandlerMark Haines2014-09-021-0/+1
| |
| * Test ratelimiterMark Haines2014-09-021-19/+48
| |
| * Ratelimiter objectMark Haines2014-09-021-0/+36
| |
* | Fix bug where we didn't correctly store the ops power levels event.Erik Johnston2014-09-021-0/+5
|/
* Implement auth for kicking.Erik Johnston2014-09-021-3/+10
|
* Add all the necessary checks to make banning work.Erik Johnston2014-09-012-2/+40
|
* Add beginnings of ban support.Erik Johnston2014-09-014-2/+30
|