diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-12-29 12:18:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-29 12:18:06 -0500 |
commit | 044fa1a1de3c954f247a98c0ce8f734c675a5efb (patch) | |
tree | 741bc7387cdd3c690f9159cea02791764805cc61 /synapse/handlers/oidc.py | |
parent | Bump attrs from 22.1.0 to 22.2.0 (#14734) (diff) | |
download | synapse-044fa1a1de3c954f247a98c0ce8f734c675a5efb.tar.xz |
Actually use the picture_claim as configured in OIDC config. (#14751)
Previously it was only using the default value ("picture") when fetching the picture from the user info.
Diffstat (limited to 'synapse/handlers/oidc.py')
-rw-r--r-- | synapse/handlers/oidc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/oidc.py b/synapse/handlers/oidc.py index 03de6a4ba6..23fb00c9c9 100644 --- a/synapse/handlers/oidc.py +++ b/synapse/handlers/oidc.py @@ -1615,7 +1615,7 @@ class JinjaOidcMappingProvider(OidcMappingProvider[JinjaOidcMappingConfig]): if email: emails.append(email) - picture = userinfo.get("picture") + picture = userinfo.get(self._config.picture_claim) return UserAttributeDict( localpart=localpart, |