mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 11:10:26 -04:00
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.
This commit is contained in:
parent
eb9ae47799
commit
044fa1a1de
2 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue