From 1ebf8ba26927f881bea3a01a6532601fe87b7ea5 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Thu, 14 Sep 2023 16:06:43 +0100 Subject: [PATCH] Default emails_to_use when not set. --- synapse/handlers/sso.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synapse/handlers/sso.py b/synapse/handlers/sso.py index e9a544e754..24a93ddf2a 100644 --- a/synapse/handlers/sso.py +++ b/synapse/handlers/sso.py @@ -653,6 +653,8 @@ class SsoHandler: remote_user_id=remote_user_id, display_name=attributes.display_name, emails=attributes.emails, + # Default to using all mapped emails. Will be overwritten in handle_submit_username_request. + emails_to_use=attributes.emails, client_redirect_url=client_redirect_url, expiry_time_ms=now + self._MAPPING_SESSION_VALIDITY_PERIOD_MS, extra_login_attributes=extra_login_attributes,