Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add cache to get_user_by_id | Erik Johnston | 2016-05-09 | 1 | -0/+3 |
| | |||||
* | pep8 | David Baker | 2016-04-06 | 1 | -1/+1 |
| | |||||
* | Make pushers use the event_push_actions table instead of listening on an ↵ | David Baker | 2016-04-06 | 1 | -20/+0 |
| | | | | | | | event stream & running the rules again. Sytest passes, but remaining to do: * Make badges work again * Remove old, unused code | ||||
* | Use google style doc strings. | Mark Haines | 2016-04-01 | 1 | -6/+9 |
| | | | | | | | pycharm supports them so there is no need to use the other format. Might as well convert the existing strings to reduce the risk of people accidentally cargo culting the wrong doc string format. | ||||
* | Thats not how transactions work. | Erik Johnston | 2016-03-11 | 1 | -13/+16 |
| | |||||
* | Implement logout | Erik Johnston | 2016-03-11 | 1 | -14/+35 |
| | |||||
* | Fix SQL statement | Erik Johnston | 2016-03-11 | 1 | -1/+1 |
| | |||||
* | more pep8 | David Baker | 2016-03-11 | 1 | -1/+1 |
| | |||||
* | Make select more sensible when dseleting access tokens, rename pusher ↵ | David Baker | 2016-03-11 | 1 | -5/+3 |
| | | | | deletion to match access token deletion and make exception arg optional. | ||||
* | Delete old, unused methods and rename new one to just be ↵ | David Baker | 2016-03-11 | 1 | -15/+2 |
| | | | | `user_delete_access_tokens` with an `except_token_ids` argument doing what it says on the tin. | ||||
* | Dear PyCharm, please indent sensibly for me. Thx. | David Baker | 2016-03-11 | 1 | -1/+1 |
| | |||||
* | Fix cache invalidation so deleting access tokens (which we did when changing ↵ | David Baker | 2016-03-11 | 1 | -8/+20 |
| | | | | password) actually takes effect without HS restart. Reinstate the code to avoid logging out the session that changed the password, removed in 415c2f05491ce65a4fc34326519754cd1edd9c54 | ||||
* | Store appservice ID on register | Daniel Wagner-Hall | 2016-03-10 | 1 | -6/+34 |
| | |||||
* | Load the current id in the IdGenerator constructor | Mark Haines | 2016-03-01 | 1 | -3/+3 |
| | | | | | | | | | Rather than loading them lazily. This allows us to remove all the yield statements and spurious arguments for the get_next methods. It also allows us to replace all instances of get_next_txn with get_next since get_next no longer needs to access the db. | ||||
* | Generate guest access token on 3pid invites | Daniel Wagner-Hall | 2016-02-24 | 1 | -0/+44 |
| | | | | | | | | | This means that following the same link across multiple sessions or devices can re-use the same guest account. Note that this is somewhat of an abuse vector; we can't throw up captchas on this flow, so this is a way of registering ephemeral accounts for spam, whose sign-up we don't rate limit. | ||||
* | Allocate guest user IDs numericcally | Daniel Wagner-Hall | 2016-02-05 | 1 | -0/+36 |
| | | | | | | | | | The current random IDs are ugly and confusing when presented in UIs. This makes them prettier and easier to read. Also, disable non-automated registration of numeric IDs so that we don't need to worry so much about people carving out our automated address space and us needing to keep retrying ID registration. | ||||
* | Add descriptions | Erik Johnston | 2016-02-03 | 1 | -0/+1 |
| | |||||
* | Make notifications go quicker | Erik Johnston | 2016-01-18 | 1 | -3/+23 |
| | |||||
* | Postgres doesn't like booleans | David Baker | 2016-01-11 | 1 | -2/+2 |
| | |||||
* | This comma is actually important | David Baker | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Adding is_guest here won't work because it just constructs a dict of uid -> ↵ | David Baker | 2016-01-06 | 1 | -1/+1 |
| | | | | password hash | ||||
* | Add is_guest flag to users db to track whether a user is a guest user or ↵ | David Baker | 2016-01-06 | 1 | -11/+29 |
| | | | | not. Use this so we can run _filter_events_for_client when calculating event_push_actions. | ||||
* | Allow guests to upgrade their accounts | Daniel Wagner-Hall | 2016-01-05 | 1 | -7/+16 |
| | |||||
* | Allow users to change which account a 3pid is bound to | Mark Haines | 2015-12-15 | 1 | -1/+1 |
| | |||||
* | Allow guests to register and call /events?room_id= | Daniel Wagner-Hall | 2015-11-04 | 1 | -7/+8 |
| | | | | | | | This follows the same flows-based flow as regular registration, but as the only implemented flow has no requirements, it auto-succeeds. In the future, other flows (e.g. captcha) may be required, so clients should treat this like the regular registration flow choices. | ||||
* | Add some docstrings | Daniel Wagner-Hall | 2015-09-22 | 1 | -0/+1 |
| | |||||
* | Implement configurable stats reporting | Daniel Wagner-Hall | 2015-09-22 | 1 | -0/+12 |
| | | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set. | ||||
* | Merge erikj/user_dedup to develop | Daniel Wagner-Hall | 2015-08-26 | 1 | -0/+14 |
| | |||||
* | Stop looking up "admin", which we never read | Daniel Wagner-Hall | 2015-08-25 | 1 | -3/+2 |
| | |||||
* | Remove completely unused concepts from codebase | Daniel Wagner-Hall | 2015-08-25 | 1 | -3/+2 |
| | | | | | | | | | | 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. | ||||
* | /tokenrefresh POST endpoint | Daniel Wagner-Hall | 2015-08-20 | 1 | -0/+62 |
| | | | | | | | | This allows refresh tokens to be exchanged for (access_token, refresh_token). It also starts issuing them on login, though no clients currently interpret them. | ||||
* | s/by_token/by_access_token/g | Daniel Wagner-Hall | 2015-08-20 | 1 | -3/+3 |
| | | | | We're about to have two kinds of token, access and refresh | ||||
* | Merge pull request #221 from matrix-org/auth | Daniel Wagner-Hall | 2015-08-14 | 1 | -6/+6 |
|\ | | | | | Simplify LoginHander and AuthHandler | ||||
| * | Simplify LoginHander and AuthHandler | Daniel Wagner-Hall | 2015-08-12 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | * Merge LoginHandler -> AuthHandler * Add a bunch of documentation * Improve some naming * Remove unused branches I will start merging the actual logic of the two handlers shortly | ||||
| * | Change Cache to not use *args in its interface | Erik Johnston | 2015-08-07 | 1 | -1/+1 |
| | | |||||
* | | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 1 | -1/+2 |
| | | |||||
* | | Change Cache to not use *args in its interface | Erik Johnston | 2015-08-07 | 1 | -1/+1 |
|/ | |||||
* | user_id now in user_threepids | David Baker | 2015-05-01 | 1 | -3/+3 |
| | |||||
* | Don't use self.execute: it's designed for fetching stuff | David Baker | 2015-05-01 | 1 | -3/+8 |
| | |||||
* | No id field on user | David Baker | 2015-05-01 | 1 | -5/+1 |
| | |||||
* | More missed get_user_by_id API changes | David Baker | 2015-05-01 | 1 | -3/+3 |
| | |||||
* | Be more postgressive | David Baker | 2015-04-29 | 1 | -2/+2 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into postgres | Erik Johnston | 2015-04-28 | 1 | -8/+72 |
|\ | |||||
| * | pep8 | David Baker | 2015-04-17 | 1 | -1/+1 |
| | | |||||
| * | Password reset, finally. | David Baker | 2015-04-17 | 1 | -1/+15 |
| | | |||||
| * | Add endpoint to get threepids from server | David Baker | 2015-04-17 | 1 | -0/+11 |
| | | |||||
| * | pep8 | David Baker | 2015-04-17 | 1 | -1/+1 |
| | | |||||
| * | make add3pid servlet work | David Baker | 2015-04-17 | 1 | -0/+11 |
| | | |||||
| * | 1) Pushers are now associated with an access token | David Baker | 2015-03-24 | 1 | -1/+1 |
| | | | | | | | | 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. | ||||
| * | Make deleting other access tokens when you change your password actually work | David Baker | 2015-03-24 | 1 | -5/+11 |
| | | |||||
| * | Implement password changing (finally) along with a start on making ↵ | David Baker | 2015-03-23 | 1 | -4/+29 |
| | | | | | | | | client/server auth more general. | ||||
* | | Go back to storing JSON in TEXT | Erik Johnston | 2015-04-16 | 1 | -5/+0 |
| | | |||||
* | | Add missing yield in storage func | Erik Johnston | 2015-04-15 | 1 | -1/+1 |
| | | |||||
* | | Handle the fact that in sqlite binary data might be stored as unicode or bytes | Erik Johnston | 2015-04-10 | 1 | -1/+3 |
| | | |||||
* | | Use generic db exceptions rather than sqlite3 specific ones | Erik Johnston | 2015-04-08 | 1 | -3/+1 |
| | | |||||
* | | PEP8 | Erik Johnston | 2015-04-07 | 1 | -1/+0 |
| | | |||||
* | | Don't use AUTOINCREMENT, use an in memory version | Erik Johnston | 2015-04-07 | 1 | -3/+7 |
| | | |||||
* | | Make work in both Maria and SQLite. Fix tests | Erik Johnston | 2015-04-01 | 1 | -2/+6 |
| | | |||||
* | | Fix unicode database support | Erik Johnston | 2015-03-25 | 1 | -4/+14 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-03-20 | 1 | -2/+9 |
|\| | |||||
| * | Give sensible names for '_simple_...' transactions | Erik Johnston | 2015-03-20 | 1 | -2/+7 |
| | | |||||
| * | @cached() annotate get_user_by_token() - achieves a minor DB performance ↵ | Paul "LeoNerd" Evans | 2015-03-17 | 1 | -1/+6 |
| | | | | | | | | improvement | ||||
* | | Convert storage layer to be mysql compatible | Erik Johnston | 2015-03-19 | 1 | -9/+5 |
|/ | |||||
* | Also give _execute() a description | Paul "LeoNerd" Evans | 2015-03-11 | 1 | -2/+1 |
| | |||||
* | Extract the id token of the token when authing users, include the token and ↵ | Mark Haines | 2015-01-28 | 1 | -1/+2 |
| | | | | device_id in the internal meta data for the event along with the transaction id when sending events | ||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Fix pep8 codestyle warnings | Mark Haines | 2014-11-20 | 1 | -7/+9 |
| | |||||
* | Add an EventValidator. Fix bugs in auth ++ storage | Erik Johnston | 2014-11-10 | 1 | -1/+5 |
| | |||||
* | Add transaction level logging and timing information. Add a _simple_delete ↵ | Erik Johnston | 2014-10-28 | 1 | -2/+5 |
| | | | | method | ||||
* | Update docstring | Erik Johnston | 2014-09-29 | 1 | -1/+2 |
| | |||||
* | SYN-48: Implement WHOIS rest servlet | Erik Johnston | 2014-09-29 | 1 | -11/+15 |
| | |||||
* | Add auth check to test if a user is an admin or not. | Erik Johnston | 2014-09-29 | 1 | -0/+8 |
| | |||||
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -2/+2 |
| | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | Be more helpful when failing to register/login, stating why (communication ↵ | Kegan Dougal | 2014-08-14 | 1 | -2/+2 |
| | | | | error, user in user, wrong credentials, etc). Make the HS send M_USER_IN_USE. | ||||
* | add in whitespace after copyright statements to improve legibility | Matthew Hodgson | 2014-08-13 | 1 | -0/+1 |
| | |||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+113 |