mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -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
1
changelog.d/14751.bugfix
Normal file
1
changelog.d/14751.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix a bug introduced in Synapse 1.73.0 where the `picture_claim` configured under `oidc_providers` was unused (the default value of `"picture"` was used instead).
|
@ -1615,7 +1615,7 @@ class JinjaOidcMappingProvider(OidcMappingProvider[JinjaOidcMappingConfig]):
|
|||||||
if email:
|
if email:
|
||||||
emails.append(email)
|
emails.append(email)
|
||||||
|
|
||||||
picture = userinfo.get("picture")
|
picture = userinfo.get(self._config.picture_claim)
|
||||||
|
|
||||||
return UserAttributeDict(
|
return UserAttributeDict(
|
||||||
localpart=localpart,
|
localpart=localpart,
|
||||||
|
Loading…
Reference in New Issue
Block a user