summary refs log tree commit diff
path: root/synapse/handlers/oidc_handler.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-11-23 13:28:03 -0500
committerGitHub <noreply@github.com>2020-11-23 13:28:03 -0500
commit6fde6aa9c02d35e0a908437ea49b275df9b58427 (patch)
tree759d0114718fc2f8d58cd94a7776690ff6538ad6 /synapse/handlers/oidc_handler.py
parentFix synctl and duplicate worker spawning (#8798) (diff)
downloadsynapse-6fde6aa9c02d35e0a908437ea49b275df9b58427.tar.xz
Properly report user-agent/IP during registration of SSO users. (#8784)
This also expands type-hints to the SSO and registration code.

Refactors the CAS code to more closely match OIDC/SAML.
Diffstat (limited to 'synapse/handlers/oidc_handler.py')
-rw-r--r--synapse/handlers/oidc_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/oidc_handler.py b/synapse/handlers/oidc_handler.py
index 4bfd8d5617..34de9109ea 100644
--- a/synapse/handlers/oidc_handler.py
+++ b/synapse/handlers/oidc_handler.py
@@ -925,7 +925,7 @@ class OidcHandler(BaseHandler):
             registered_user_id = await self._registration_handler.register_user(
                 localpart=localpart,
                 default_display_name=attributes["display_name"],
-                user_agent_ips=(user_agent, ip_address),
+                user_agent_ips=[(user_agent, ip_address)],
             )
 
         await self.store.record_user_external_id(