diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-28 08:56:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 08:56:36 -0400 |
commit | b055dc93220217fe55f8f4d28945f86353c2f3a8 (patch) | |
tree | 99e69481c40dffd9e60a816f74a03d46beda9c2d /synapse | |
parent | Convert additional database code to async/await. (#8195) (diff) | |
download | synapse-b055dc93220217fe55f8f4d28945f86353c2f3a8.tar.xz |
Ensure that the OpenID Connect remote ID is a string. (#8190)
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/oidc_handler.py | 3 |
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", |