Fix oidc profile avatar route

This commit is contained in:
Johannes Zellner
2025-12-24 10:51:38 +01:00
parent 6d89010a1f
commit 8d85b521c8

View File

@@ -506,7 +506,7 @@ async function getClaims(username/*, use, scope*/) {
given_name: firstName,
locale: 'en-US',
name: user.displayName,
picture: `https://${dashboardFqdn}/api/v1/profile/avatar/${user.id}.png`, // some apps get surprised if we respond with a svg
picture: `https://${dashboardFqdn}/api/v1/profile/avatar/${user.id}`, // we always store as png
preferred_username: user.username,
groups: allGroups.filter(function (g) { return g.userIds.indexOf(user.id) !== -1; }).map(function (g) { return `${g.name}`; })
};