summary refs log tree commit diff
path: root/synapse/handlers/oidc_handler.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-20 17:42:15 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-20 17:42:15 +0100
commitb7672ff59e290f5f6528a6573fd555a283fa2fd4 (patch)
tree0ea4fbafd6158ac97cb298a3a4024d1e3a5e4de4 /synapse/handlers/oidc_handler.py
parentMerge commit '5c03134d0' into anoa/dinsic_release_1_21_x (diff)
parentConvert state and stream stores and related code to async (#8194) (diff)
downloadsynapse-b7672ff59e290f5f6528a6573fd555a283fa2fd4.tar.xz
Merge commit 'aec708517' into anoa/dinsic_release_1_21_x
* commit 'aec708517':
  Convert state and stream stores and related code to async (#8194)
  Ensure that the OpenID Connect remote ID is a string. (#8190)
Diffstat (limited to 'synapse/handlers/oidc_handler.py')
-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",