summary refs log tree commit diff
diff options
context:
space:
mode:
authorHalf-Shot <will@half-shot.uk>2023-09-14 16:06:43 +0100
committerHalf-Shot <will@half-shot.uk>2023-09-14 16:06:43 +0100
commit1ebf8ba26927f881bea3a01a6532601fe87b7ea5 (patch)
tree2d51eddb3e9c06e798f79683308637f15542f32b
parentFilter out unwanted user_agents from udv. (#16124) (diff)
downloadsynapse-hs/default_emails_to_use.tar.xz
Default emails_to_use when not set. github/hs/default_emails_to_use hs/default_emails_to_use
-rw-r--r--synapse/handlers/sso.py2
1 files changed, 2 insertions, 0 deletions
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,