forked-synapse/synapse/rest/client/v1
Andrew Morgan 2c2e649be2
Move and refactor LoginRestServlet helper methods (#8182)
This is split out from https://github.com/matrix-org/synapse/pull/7438, which had gotten rather large.

`LoginRestServlet` has a couple helper methods, `login_submission_legacy_convert` and `login_id_thirdparty_from_phone`. They're primarily used for converting legacy user login submissions to "identifier" dicts ([see spec](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login)). Identifying information such as usernames or 3PID information used to be top-level in the login body. They're now supposed to be put inside an [identifier](https://matrix.org/docs/spec/client_server/r0.6.1#identifier-types) parameter instead.

#7438's purpose is to allow using the new identifier parameter during User-Interactive Authentication, which is currently handled in AuthHandler. That's why I've moved these helper methods there. I also moved the refactoring of these method from #7438 as they're relevant.
2020-08-28 09:58:17 +01:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
directory.py Convert synapse.api to async/await (#8031) 2020-08-06 08:30:06 -04:00
events.py Fix /events/:event_id deprecated API. (#6731) 2020-01-20 17:38:09 +00:00
initial_sync.py Port rest/v1 to async/await 2019-12-05 15:57:28 +00:00
login.py Move and refactor LoginRestServlet helper methods (#8182) 2020-08-28 09:58:17 +01:00
logout.py Allow expired accounts to logout (#7443) 2020-05-14 16:32:49 +01:00
presence.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
profile.py Back out change preventing setting null avatar URLs 2019-12-11 11:46:55 +00:00
push_rule.py Remove ChainedIdGenerator. (#8123) 2020-08-19 13:41:51 +01:00
pusher.py Ensure that HTML pages served from Synapse include headers to avoid embedding. 2020-07-02 09:58:31 -04:00
room.py Do not propagate typing notifications from shadow-banned users. (#8176) 2020-08-26 12:05:36 -04:00
voip.py Stop passing bytes when dumping JSON (#7799) 2020-07-08 07:14:56 -04:00