the oidc module expect accountId and sub to be the same

in our case sub is the username exposed to the app, not the userId
internal to Cloudron

Upstream behavior change 9b89153c0e
This commit is contained in:
Johannes Zellner
2025-07-01 22:07:31 +02:00
parent b2d380afcc
commit 846986987d
3 changed files with 27 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ async function setProfileConfig(profileConfig, options, auditSource) {
if (options.persistUserIdSessions === user.id) continue; // do not logout the API caller
await tokens.delByUserIdAndType(user.id, oidcClients.ID_WEBADMIN);
await oidcServer.revokeByUserId(user.id);
await oidcServer.revokeByUsername(user.username);
}
}
}