forked-synapse/synapse/rest
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
..
admin Search in columns 'name' and 'displayname' in the admin users endpoint (#7377) 2020-08-25 14:18:14 +01:00
client Move and refactor LoginRestServlet helper methods (#8182) 2020-08-28 09:58:17 +01:00
consent Remove unnecessary maybeDeferred calls (#8044) 2020-08-07 09:44:48 -04:00
key Be stricter about JSON that is accepted by Synapse (#8106) 2020-08-19 07:26:03 -04:00
media Remove unnecessary maybeDeferred calls (#8044) 2020-08-07 09:44:48 -04:00
oidc Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
saml2 Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
__init__.py Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
health.py Add health check endpoint (#8048) 2020-08-07 14:21:24 +01:00
well_known.py Use the JSON encoder without whitespace in more places. (#8124) 2020-08-20 10:32:33 -04:00