summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-12-02 07:09:21 -0500
committerGitHub <noreply@github.com>2020-12-02 07:09:21 -0500
commitc21bdc813f5c21153cded05bcd0a57b5836f09fe (patch)
treea3e8d34903997be9dc4c8cfa16c713d2dc5ce1ab /synapse
parentCreate a `PasswordProvider` wrapper object (#8849) (diff)
downloadsynapse-c21bdc813f5c21153cded05bcd0a57b5836f09fe.tar.xz
Add basic SAML tests for mapping users. (#8800)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/saml_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/saml_handler.py b/synapse/handlers/saml_handler.py
index 34db10ffe4..7ffad7d8af 100644
--- a/synapse/handlers/saml_handler.py
+++ b/synapse/handlers/saml_handler.py
@@ -265,7 +265,7 @@ class SamlHandler(BaseHandler):
             return UserAttributes(
                 localpart=result.get("mxid_localpart"),
                 display_name=result.get("displayname"),
-                emails=result.get("emails"),
+                emails=result.get("emails", []),
             )
 
         with (await self._mapping_lock.queue(self._auth_provider_id)):