diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-07-19 18:46:19 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-07-19 18:46:19 +0100 |
commit | 40cbffb2d2ca0166f1377ac4ec5988046ea4ca10 (patch) | |
tree | a3b3e7fbe72adc43ce732a22484381673f770bad /synapse/app/synctl.py | |
parent | Merge pull request #931 from matrix-org/rav/refactor_register (diff) | |
download | synapse-40cbffb2d2ca0166f1377ac4ec5988046ea4ca10.tar.xz |
Further registration refactoring
* `RegistrationHandler.appservice_register` no longer issues an access token: instead it is left for the caller to do it. (There are two of these, one in `synapse/rest/client/v1/register.py`, which now simply calls `AuthHandler.issue_access_token`, and the other in `synapse/rest/client/v2_alpha/register.py`, which is covered below). * In `synapse/rest/client/v2_alpha/register.py`, move the generation of access_tokens into `_create_registration_details`. This means that the normal flow no longer needs to call `AuthHandler.issue_access_token`; the shared-secret flow can tell `RegistrationHandler.register` not to generate a token; and the appservice flow continues to work despite the above change.
Diffstat (limited to 'synapse/app/synctl.py')
0 files changed, 0 insertions, 0 deletions