summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-08-28 08:56:36 -0400
committerGitHub <noreply@github.com>2020-08-28 08:56:36 -0400
commitb055dc93220217fe55f8f4d28945f86353c2f3a8 (patch)
tree99e69481c40dffd9e60a816f74a03d46beda9c2d /synapse/handlers
parentConvert additional database code to async/await. (#8195) (diff)
downloadsynapse-b055dc93220217fe55f8f4d28945f86353c2f3a8.tar.xz
Ensure that the OpenID Connect remote ID is a string. (#8190)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/oidc_handler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/oidc_handler.py b/synapse/handlers/oidc_handler.py
index c5bd2fea68..1b06f3173f 100644
--- a/synapse/handlers/oidc_handler.py
+++ b/synapse/handlers/oidc_handler.py
@@ -869,6 +869,9 @@ class OidcHandler:
             raise MappingException(
                 "Failed to extract subject from OIDC response: %s" % (e,)
             )
+        # Some OIDC providers use integer IDs, but Synapse expects external IDs
+        # to be strings.
+        remote_user_id = str(remote_user_id)
 
         logger.info(
             "Looking for existing mapping for user %s:%s",