Fix oidc profile avatar route
This commit is contained in:
@@ -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}`; })
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user