summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-06-16 11:19:35 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-06-16 11:33:16 +0100
commitefb5670845a87e69ff77b3991018b9af59e7dc68 (patch)
tree603e0626b63a2730bf6febf85377c2383c9444c4
parentUse assert_param_in_dict (diff)
downloadsynapse-efb5670845a87e69ff77b3991018b9af59e7dc68.tar.xz
Update synapse/handlers/auth.py
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
-rw-r--r--synapse/handlers/auth.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py

index fd4e4148e3..e46918ee56 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py
@@ -56,11 +56,14 @@ logger = logging.getLogger(__name__) def client_dict_convert_legacy_fields_to_identifier( submission: Dict[str, Union[str, Dict]] ): - """Take a legacy-formatted login submission or User-Interactive Authentication dict and - updates it to feature an identifier dict instead. - Providing user-identifying information at the top-level of a login or UIA submission is - now deprecated and replaced with identifiers: + """ + Convert a legacy-formatted login submission to an identifier dict. + + Legacy login submissions (used in both login and user-interactive authentication) + provide user-identifying information at the top-level instead of in an `indentifier` + property. This is now deprecated and replaced with identifiers: https://matrix.org/docs/spec/client_server/r0.6.1#identifier-types + Args: submission: The client dict to convert. Passed by reference and modified Raises: