synapse-product/synapse/storage
Richard van der Hoff f863a52cea Add device_id support to /login
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.
2016-07-18 16:39:44 +01:00
..
engines Optionally make committing to postgres asynchronous. 2016-06-20 17:53:38 +01:00
schema Add device_id support to /login 2016-07-18 16:39:44 +01:00
util Add tests for redactions 2016-04-07 16:52:07 +01:00
__init__.py Add device_id support to /login 2016-07-18 16:39:44 +01:00
_base.py Feature: Add deactivate account admin API 2016-06-30 15:40:58 +01:00
account_data.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
appservice.py Fix AS retries, but with correct ordering 2016-06-07 10:24:50 +01:00
background_updates.py Simplify query and handle finishing correctly 2016-04-22 10:01:57 +01:00
client_ips.py Move insert_client_ip to a separate class 2016-06-03 14:42:35 +01:00
devices.py Add device_id support to /login 2016-07-18 16:39:44 +01:00
directory.py Bump get_aliases_for_room cache 2016-03-22 14:08:13 +00:00
end_to_end_keys.py Fix relative imports so they work in both py3 and py27 2016-03-08 11:45:50 +00:00
event_federation.py Use computed prev event ids 2016-04-01 17:39:32 +01:00
event_push_actions.py Use true/false for boolean parameter inclusive to avoid potential for sqli, and possibly make the code clearer 2016-07-05 10:39:13 +01:00
events.py Fix /purge_history bug 2016-07-15 14:23:15 +01:00
filtering.py Cache filters 2016-01-28 17:09:09 +00:00
keys.py Fix relative imports so they work in both py3 and py27 2016-03-08 11:45:50 +00:00
media_repository.py Implement purge_media_cache admin API 2016-06-29 14:57:59 +01:00
openid.py Add an openidish mechanism for proving to third parties that you own a given user_id 2016-05-05 13:42:44 +01:00
prepare_database.py Track approximate last access time for remote media 2016-06-29 11:41:20 +01:00
presence.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
profile.py Add the create_profile method back since the tests use it 2016-06-17 19:20:47 +01:00
push_rule.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
pusher.py Only get local users 2016-06-03 11:04:31 +01:00
receipts.py Merge pull request #809 from matrix-org/erikj/cache_receipts_in_room 2016-06-03 10:58:24 +01:00
registration.py Add device_id support to /login 2016-07-18 16:39:44 +01:00
rejections.py copyrights 2016-01-07 04:26:29 +00:00
room.py more pep8 2016-06-24 11:45:23 +01:00
roommember.py Remove dead code. 2016-06-07 15:07:11 +01:00
search.py Remove event fetching from DB threads 2016-06-03 17:22:13 +01:00
signatures.py Cache get_event_reference_hashes 2016-05-31 15:32:32 +01:00
state.py Add cache to _get_state_groups_from_groups 2016-04-19 17:22:03 +01:00
stream.py Merge branch 'erikj/shared_secret' into erikj/test2 2016-07-06 14:46:31 +01:00
tags.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
transactions.py Pull prev txn from in memory 2016-05-06 11:30:55 +01:00