summary refs log tree commit diff
path: root/tests/storage/test_registration.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix importsRichard van der Hoff2016-11-301-3/+0
|
* Rip out more refresh_token codeRichard van der Hoff2016-11-301-55/+0
| | | | | | | | We might as well treat all refresh_tokens as invalid. Just return a 403 from /tokenrefresh, so that we don't have a load of dead, untestable code hanging around. Still TODO: removing the table from the schema.
* Delete refresh tokens when deleting devicesRichard van der Hoff2016-07-261-0/+34
|
* Add device_id support to /loginRichard van der Hoff2016-07-181-7/+14
| | | | | | | | | | | | | Add a 'devices' table to the storage, as well as a 'device_id' column to refresh_tokens. Allow the client to pass a device_id, and initial_device_display_name, to /login. If login is successful, then register the device in the devices table if it wasn't known already. If no device_id was supplied, make one up. Associate the device_id with the access token and refresh token, so that we can get at it again later. Ensure that the device_id is copied from the refresh token to the access_token when the token is refreshed.
* Fix flake8 warnings for testsMark Haines2016-02-191-2/+4
|
* Fix testsErik Johnston2016-01-271-2/+1
|
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-1/+1
|\ | | | | Send unread notification counts
| * fix testsDavid Baker2016-01-061-1/+1
| |
* | copyrightsMatthew Hodgson2016-01-071-1/+1
|/
* Stop looking up "admin", which we never readDaniel Wagner-Hall2015-08-251-4/+2
|
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-2/+0
| | | | | | | | | | 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 endpointDaniel Wagner-Hall2015-08-201-0/+55
| | | | | | | | 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/gDaniel Wagner-Hall2015-08-201-2/+2
| | | | We're about to have two kinds of token, access and refresh
* Caches should be bound to instances.Erik Johnston2015-06-031-1/+1
| | | | | Before, caches were global and so different instances of the stores would share caches. This caused problems in the unit tests.
* Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-13/+23
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-8/+2
| | | | setup_test_homeserver function in utils.
* Extract the id token of the token when authing users, include the token and ↵Mark Haines2015-01-281-2/+8
| | | | device_id in the internal meta data for the event along with the transaction id when sending events
* Unbreak tests after changing storage APIErik Johnston2014-09-291-2/+2
|
* Use new 'tests.unittest' in new storage level testsPaul "LeoNerd" Evans2014-09-151-1/+1
|
* Unit-test for RegistrationStore using SQLiteMemoryDbPoolPaul "LeoNerd" Evans2014-09-111-0/+69